# exportDataAsPdf

Downloads the table as PDF and returns generation results.

Canonical: https://grid.syidax.com/docs/methods/exportDataAsPdf/

<a id="meaning"></a>

## What does this API do?

Downloads the table as PDF and returns generation results.

API for Pro features: Built-in PDF export

<a id="contract"></a>

## Exact input and result types

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

| Arguments | Required | Type |
| --- | --- | --- |
| options | Optional | SyGridPdfDownloadOptions |

The return type is `Promise<PdfExportResult>`.

<a id="usage"></a>

## 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.

<a id="types"></a>

## Read related types

- [SyGridPdfDownloadOptions](https://grid.syidax.com/docs/types/SyGridPdfDownloadOptions.md)
- [PdfExportResult](https://grid.syidax.com/docs/types/PdfExportResult.md)

<a id="recipes"></a>

## Feature explanations and examples

- [PDF export](https://grid.syidax.com/docs/features/pdf-export.md) — 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.
