API reference: @salmonui/export/pdf
PdfExportOptionsinterface
import type { PdfExportOptions } from '@salmonui/export/pdf';interface PdfExportOptions<Row> extends ExportOptions<Row>, PdfOptions {
}
| Name | Signature | Description |
|---|---|---|
pagesoptionalinherited | pages?: "all" | "current"; |
|
includeHiddenColumnsoptionalinherited | includeHiddenColumns?: boolean; | Include hidden columns. Default false. |
rowsoptionalinherited | rows?: readonly Row[]; | Rows to export instead of the grid rows (for example the selected rows), with the grid's columns. |
columnsoptionalinherited | columns?: readonly ExportColumnOption[]; | Export-only columns, in order. |
fileNameoptionalinherited | fileName?: string; | Download name; the format extension is added when missing. Default |
hierarchyoptionalinherited | hierarchy?: "all" | "expanded" | "none"; | Detail and child-grid rows: |
treeoptionalinherited | tree?: "all" | "expanded"; | Tree mode rows: |
stylesoptionalinherited | styles?: ExportStyles; | |
sliceMsoptionalinherited | sliceMs?: number; | Time slice in ms before the writer yields to the event loop. Default 25. |
yieldoptionalinherited | yield?: YieldFn; | Awaited between slices. Default: a macrotask. |
pageSizeoptionalinherited | pageSize?: readonly [number, number] | PdfPageSize; | Default |
orientationoptionalinherited | orientation?: "landscape" | "portrait"; | Default |
marginoptionalinherited | margin?: number; | Page margin in points. Default 36. |
fontSizeoptionalinherited | fontSize?: number; | Body font size in points. Default 8. |
columnOverflowoptionalinherited | columnOverflow?: "fit" | "paginate"; |
|
headeroptionalinherited | header?: string; | Page header text; |
footeroptionalinherited | footer?: string; | Page footer text; default |
includeHeadersoptionalinherited | includeHeaders?: boolean; | Header rows. Default true. |
titleoptionalinherited | title?: string; | Document title ( |
compressoptionalinherited | compress?: boolean; | Deflate content streams (when the platform has |
fontoptionalinherited | font?: PdfFont | PdfFontData; | TrueType font bytes ( |
mergeRepeatedValuesoptionalinherited | mergeRepeatedValues?: boolean; | Merge repeated values in consecutive data rows, as XLSX. Default false. |
appendImagesoptionalinherited | appendImages?: readonly ExportImage[]; | Pages after the table, one PNG or JPEG image each ( |