# exportPdf (@salmonui/export/pdf)

> The exportPdf function of @salmonui/export/pdf: Exports a grid as PDF. Resolves to { fileName, mimeType, data }, or null when onBeforeExport prevents it.

Canonical: https://salmonui.dev/docs/reference/export/pdf/exportPdf

```ts
import { exportPdf } from '@salmonui/export/pdf';
```

Entry index: https://salmonui.dev/docs/reference/export/pdf (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/export/pdf.md).

## Reference

Kind: function

```ts
function exportPdf<Row>(source: ExportSource<Row>, options?: PdfExportOptions<Row>, handlers?: ExportHandlers<Row>): Promise<ExportFile | null>;
```

Exports a grid as PDF. Resolves to `{ fileName, mimeType, data }`, or null
when `onBeforeExport` prevents it.
