# GanttPdfOptions (@salmonui/export/gantt)

> The GanttPdfOptions interface of @salmonui/export/gantt.

Canonical: https://salmonui.dev/docs/reference/export/gantt/GanttPdfOptions

```ts
import type { GanttPdfOptions } from '@salmonui/export/gantt';
```

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

## Reference

Kind: interface

```ts
interface GanttPdfOptions {
    readonly fileName?: string;
    readonly pageSize?: PdfPageSize | 'A4' | 'A3' | 'Letter' | 'Legal' | readonly [
        number,
        number
    ] | {
        readonly width: number;
        readonly height: number;
    };
    readonly orientation?: 'portrait' | 'landscape';
    readonly fitToWidth?: boolean;
    readonly header?: string;
    readonly footer?: string;
    readonly font?: PdfFont | PdfFontData;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `fileName` | `readonly fileName?: string;` | optional | Default `Gantt.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`. |
| `fitToWidth` | `readonly fitToWidth?: boolean;` | optional | Scales the grid and the whole chart to the page width (one page per row band). Default false. |
| `header` | `readonly header?: string;` | optional | Page header text; `{page}` and `{pages}` are replaced. |
| `footer` | `readonly footer?: string;` | optional | Page footer text; default `{page} / {pages}`. Empty string for none. |
| `font` | `readonly font?: PdfFont \| PdfFontData;` | optional | TrueType font for all text (the PDF writer's `font`): needed outside WinAnsi and for RTL scripts. |
