PDF Export
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 andSaveAsyncin .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 to | Read |
|---|---|
| Set paper, orientation, margins, print area and fit-to-width | Page Layout and Print Settings |
| Put page numbers, dates or the file name into headers and footers | Page Layout and Print Settings |
| Save a PDF in .NET, Node.js or the browser editor and set its options | Exporting Worksheets to PDF |
| Export a workbook that contains dashboards | Exporting Worksheets to PDF |
| Create tagged PDF reports and validate them with assistive technologies | Tagged PDF and Accessibility |
| Merge an invoice and export it as PDF | Invoice Report Pipeline |
Where to Start
- Page Layout and Print Settings: prepare the pages of each worksheet.
- Exporting Worksheets to PDF: save the PDF with the options you need.
- Tagged PDF and Accessibility, when your reports must be accessible.
Pages in This Section
- Page Layout and Print Settings: configure paper, margins, print area, scaling and header and footer field codes, and review pages in Page Layout view.
- Exporting Worksheets to PDF: save worksheets as PDF, choose the output options and handle dashboards and delivery.
- Tagged PDF and Accessibility: author accessible content, review the options for tagged output and validate the delivered PDF.