# GraphicsPdfOptions (@salmonui/export/graphics)

> The GraphicsPdfOptions interface of @salmonui/export/graphics.

Canonical: https://salmonui.dev/docs/reference/export/graphics/GraphicsPdfOptions

```ts
import type { GraphicsPdfOptions } from '@salmonui/export/graphics';
```

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

## Reference

Kind: interface

```ts
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;
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `fileName` | `readonly fileName?: string;` | optional | Default `Chart.pdf`. |
| `pageSize` | `readonly pageSize?: PdfPageSize \| 'A4' \| 'A3' \| 'Letter' \| 'Legal' \| readonly [     number,     number ] \| {     readonly width: number;     readonly height: number; };` | optional | A PDF writer page size (case-insensitive) or the size in points. Default `a4`. |
| `orientation` | `readonly orientation?: 'portrait' \| 'landscape';` | optional | Default: landscape when the drawing is wider than tall. |
| `margin` | `readonly margin?: number;` | optional | Page margin in points. Default 36. |
| `header` | `readonly header?: string;` | optional | Page header text; `{page}` and `{pages}` are replaced. |
| `footer` | `readonly footer?: string;` | optional | Page footer text. Default none. |
| `title` | `readonly title?: string;` | optional | Document title (PDF Info). |
| `font` | `readonly font?: PdfFont \| PdfFontData;` | optional | TrueType font for all text: needed outside WinAnsi. |
| `compress` | `readonly compress?: boolean;` | optional | Deflate the page streams when the platform has `CompressionStream`. Default true. |
