API REFERENCE
getDataAsPdf
Returns PDF generation results without downloading. Prepare a suitable font for characters such as Korean text.
What does this API do?
Returns PDF generation results without downloading. Prepare a suitable font for characters such as Korean text.
API for Pro features: Built-in PDF export
Exact input and result types
getDataAsPdf(options?: SyGridPdfExportOptions): Promise<PdfExportResult>| Arguments | Required | Type |
|---|---|---|
| options | Optional | SyGridPdfExportOptions |
The return type is Promise<PdfExportResult>.
Usage flow
After registering and initializing the Grid element, call grid.getDataAsPdf(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.
Read related types
Feature explanations and examples
- PDF export
PDF export fixes the table into a shareable document. Choose CSV or XLSX for further calculation in other apps, and PDF for reading and distribution.