PDF export PRO
Export table data to a PDF document.
Choose output columns, data scope, page information, and file name in your app.
View code
Sample data included in the code · 6 rows
Usage guide
#Print orders or share them in a report format that is less readily edited.
Integration steps
- Define the report scope
Choose output columns, data scope, page information, and file name in your app.
- Prepare fonts for multilingual text
For Korean data, provide a supporting font through pdfFontUrl.
- Export from a user action
Call exportDataAsPdf from an app button, then inspect text, numbers, page breaks, and column clipping in the PDF.
Save table data as PDF for sharing or printing.
The current workspace has no PDF button. Connect this to your app's export action and prepare fonts and page settings.
Useful terms
- pdfFontUrl
- The URL of the font used in PDF output.
- exportDataAsPdf
- A method requesting PDF file export.
Key API examples
Application code that references the registered Grid element as grid.
await grid.exportDataAsPdf({fileName:'orders.pdf'});Using this feature in your product requires the Pro runtime and a valid license.
API reference
#Other properties2
| Attribute / Property | Type / Default | Description |
|---|---|---|
PRO pdfFontUrl | stringDefault: undefined | App-hosted TTF/OTF URL used automatically for PDF exports that contain Korean/Japanese/CJK or other text outside PDF Standard 14 WinAnsi. |
PRO pdfAutoFont | booleanDefault: true | Try to resolve an embedded PDF font automatically when `fontBytes` is not supplied. Uses `pdf-font-url` first, then browser local-font access when available. Default true. |
Methods2
| Method / Arguments | Return type | Description |
|---|---|---|
PRO options?: SyGridPdfExportOptions | Promise<PdfExportResult> | Serialize the current rows + columns to a PDF byte stream. |
PRO options?: SyGridPdfDownloadOptions | Promise<PdfExportResult> | Build the PDF and trigger a browser download via Blob anchor click. |
Explore each feature
Learn when to use each feature and how to configure it. Each guide identifies live examples and features you connect in your app.