API REFERENCE

exportDataAsPdf

Downloads the table as PDF and returns generation results.

What does this API do?

Downloads the table as PDF and returns generation results.

API for Pro features: Built-in PDF export

Exact input and result types

typescript
exportDataAsPdf(options?: SyGridPdfDownloadOptions): Promise<PdfExportResult>
ArgumentsRequiredType
optionsOptionalSyGridPdfDownloadOptions

The return type is Promise<PdfExportResult>.

Usage flow

After registering and initializing the Grid element, call grid.exportDataAsPdf(…). 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