SYIDAX / DATA GRID

PDF export PRO

Export table data to a PDF document.

Get started
PDF exportSample order data
120 rows
Loading Grid…
Latest result

Choose output columns, data scope, page information, and file name in your app.

View code
Current preview

Usage guide

#

Print orders or share them in a report format that is less readily edited.

Integration steps

  1. Define the report scope

    Choose output columns, data scope, page information, and file name in your app.

  2. Prepare fonts for multilingual text

    For Korean data, provide a supporting font through pdfFontUrl.

  3. Export from a user action

    Call exportDataAsPdf from an app button, then inspect text, numbers, page breaks, and column clipping in the PDF.

Expected results

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 / PropertyType / DefaultDescription
PRO
pdfFontUrl
stringDefault: undefinedApp-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: trueTry 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 / ArgumentsReturn typeDescription
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.