# PivotExportOptions (@salmonui/pivot-table)

> The PivotExportOptions interface of @salmonui/pivot-table: Options of api.exportToExcel() / exportToCsv() / exportToPdf(), passed through to exportPivot() (file name, row layout, styles, cell hook, ...).

Canonical: https://salmonui.dev/docs/reference/pivot-table/PivotExportOptions

```ts
import type { PivotExportOptions } from '@salmonui/pivot-table';
```

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

## Reference

Kind: interface

```ts
interface PivotExportOptions {
    readonly fileName?: string | undefined;
    readonly download?: boolean | undefined;
    readonly chart?: ExportImage | readonly ExportImage[] | undefined;
    readonly escapeFormulas?: boolean | undefined;
    readonly [option: string]: unknown;
}
```

Options of `api.exportToExcel()` / `exportToCsv()` / `exportToPdf()`, passed through to `exportPivot()` (file name, row layout, styles, `cell` hook, ...).

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `fileName` | `readonly fileName?: string \| undefined;` | optional | File name without extension. Default `pivot`. |
| `download` | `readonly download?: boolean \| undefined;` | optional | Return the file instead of downloading it (the promise still resolves after the write). |
| `chart` | `readonly chart?: ExportImage \| readonly ExportImage[] \| undefined;` | optional | PDF only: chart image(s) on their own pages after the table (`pivotChartImage(chartApi)`). |
| `escapeFormulas` | `readonly escapeFormulas?: boolean \| undefined;` | optional | CSV only: neutralize spreadsheet formulas in text cells. Default true; `false` writes raw text. |
