View as Markdown

API reference: @salmonui/export/pdf

exportPdffunction

import { exportPdf } from '@salmonui/export/pdf';
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.