# GanttPdfExportOptions (@salmonui/gantt)

> The GanttPdfExportOptions interface of @salmonui/gantt: A PDF export.

Canonical: https://salmonui.dev/docs/reference/gantt/GanttPdfExportOptions

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

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

## Reference

Kind: interface

```ts
interface GanttPdfExportOptions<Row> {
    readonly fileName?: string;
    readonly pageSize?: 'A4' | 'A3' | 'Letter' | 'Legal' | {
        readonly width: number;
        readonly height: number;
    };
    readonly orientation?: 'portrait' | 'landscape';
    readonly fitToWidth?: boolean;
    readonly header?: string;
    readonly footer?: string;
    readonly font?: unknown;
    readonly cell?: (ctx: {
        readonly task: Row;
        readonly field: string;
        readonly value: unknown;
        text: string;
    }) => void;
    readonly headerCell?: (ctx: {
        readonly field: string;
        text: string;
    }) => void;
    readonly taskbar?: (ctx: {
        readonly task: Row;
        readonly info: GanttTaskInfo;
        color: string;
        progressColor: string;
    }) => void;
    readonly timelineCell?: (ctx: {
        readonly date: Date;
        readonly tier: 'top' | 'bottom';
        text: string;
    }) => void;
}
```

A PDF export.

Members (11):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `fileName` | `readonly fileName?: string;` | optional |  |
| `pageSize` | `readonly pageSize?: 'A4' \| 'A3' \| 'Letter' \| 'Legal' \| {     readonly width: number;     readonly height: number; };` | optional |  |
| `orientation` | `readonly orientation?: 'portrait' \| 'landscape';` | optional |  |
| `fitToWidth` | `readonly fitToWidth?: boolean;` | optional | Scales the chart so the whole timeline fits the page width. Default false (pages across). |
| `header` | `readonly header?: string;` | optional |  |
| `footer` | `readonly footer?: string;` | optional |  |
| `font` | `readonly font?: unknown;` | optional | A TrueType font for non-Latin text (the PDF writer's `font`). |
| `cell` | `readonly cell?: (ctx: {     readonly task: Row;     readonly field: string;     readonly value: unknown;     text: string; }) => void;` | optional |  |
| `headerCell` | `readonly headerCell?: (ctx: {     readonly field: string;     text: string; }) => void;` | optional |  |
| `taskbar` | `readonly taskbar?: (ctx: {     readonly task: Row;     readonly info: GanttTaskInfo;     color: string;     progressColor: string; }) => void;` | optional |  |
| `timelineCell` | `readonly timelineCell?: (ctx: {     readonly date: Date;     readonly tier: 'top' \| 'bottom';     text: string; }) => void;` | optional |  |
