API reference: @salmonui/export/graphics
GraphicsPdfOptionsinterface
import type { GraphicsPdfOptions } from '@salmonui/export/graphics';interface GraphicsPdfOptions {
readonly fileName?: string;
readonly pageSize?: PdfPageSize | 'A4' | 'A3' | 'Letter' | 'Legal' | readonly [
number,
number
] | {
readonly width: number;
readonly height: number;
};
readonly orientation?: 'portrait' | 'landscape';
readonly margin?: number;
readonly header?: string;
readonly footer?: string;
readonly title?: string;
readonly font?: PdfFont | PdfFontData;
readonly compress?: boolean;
}
| Name | Signature | Description |
|---|---|---|
fileNameoptional | readonly fileName?: string; | Default |
pageSizeoptional | readonly pageSize?: PdfPageSize | 'A4' | 'A3' | 'Letter' | 'Legal' | readonly [
number,
number
] | {
readonly width: number;
readonly height: number;
}; | A PDF writer page size (case-insensitive) or the size in points. Default |
orientationoptional | readonly orientation?: 'portrait' | 'landscape'; | Default: landscape when the drawing is wider than tall. |
marginoptional | readonly margin?: number; | Page margin in points. Default 36. |
headeroptional | readonly header?: string; | Page header text; |
footeroptional | readonly footer?: string; | Page footer text. Default none. |
titleoptional | readonly title?: string; | Document title (PDF Info). |
fontoptional | readonly font?: PdfFont | PdfFontData; | TrueType font for all text: needed outside WinAnsi. |
compressoptional | readonly compress?: boolean; | Deflate the page streams when the platform has |