TX Sheet Control

PDF Export

Topic

Sales reports, merged invoices and other worksheets leave an application as PDF. You export them from the browser editor or from the independent .NET and Node.js server packages of TX Sheet Control. PDF is a format for saving only: a workbook is saved as PDF but never loaded from one.

Getting a PDF right means preparing the pages before the export, choosing the options of the save call and, where reports must be accessible, validating the tagged result.

How PDF Export Works

Besides the document content, three things shape the PDF:

  • The print settings of each worksheet: paper, orientation, margins, print area, scaling and headers and footers with page fields. Screen zoom, frozen panes and the size of the browser host do not replace them. Page Layout view shows the printed page before the export.
  • The save call with the PDF stream type: editor.save(StreamType.PDF, options) in the browser editor, the server equivalent in Node.js and SaveAsync in .NET. Its options set metadata, compression, selected sheets and pages, the locale, time zone and date context, security, viewer preferences and tagging.
  • The fonts deployed with the application, whose metrics affect line wrapping and pagination.

To export a dashboard, set pdf.dashboardId to its ID. The default dashboardPage: 'fit' creates one dashboard-sized page; 'print' paginates with the workbook print settings. For worksheet-only output from a workbook that also contains dashboards, set omitDashboards: true. Evaluation output retains its watermark.

Find the Right Page

If you want toRead
Set paper, orientation, margins, print area and fit-to-widthPage Layout and Print Settings
Put page numbers, dates or the file name into headers and footersPage Layout and Print Settings
Save a PDF in .NET, Node.js or the browser editor and set its optionsExporting Worksheets to PDF
Export a workbook that contains dashboardsExporting Worksheets to PDF
Create tagged PDF reports and validate them with assistive technologiesTagged PDF and Accessibility
Merge an invoice and export it as PDFInvoice Report Pipeline

Where to Start

  1. Page Layout and Print Settings: prepare the pages of each worksheet.
  2. Exporting Worksheets to PDF: save the PDF with the options you need.
  3. Tagged PDF and Accessibility, when your reports must be accessible.

Pages in This Section