> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Types: editor: Page layout and printing

## `HeaderFooterText`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `center` | `string` | |
| `left` | `string` | |
| `right` | `string` | |

## `PageSetup`

Page Setup's four pages; margins in inches, `scale` null when the page fits `fitWide` by `fitTall` pages (0 = automatic).

Import from `@reductoai/xlsx/editor`.

| Name | Type | Description |
| - | - | - |
| `blackAndWhite` | `boolean` | |
| `centerHorizontally` | `boolean` | |
| `centerVertically` | `boolean` | |
| `comments` | `PrintComments` | |
| `draft` | `boolean` | |
| `errors` | `PrintErrorType` | |
| `firstPageNumber` | `number \| ""` | |
| `fitTall` | `number` | |
| `fitWide` | `number` | |
| `footer` | `HeaderFooterText` | |
| `gridlines` | `boolean` | |
| `header` | `HeaderFooterText` | |
| `headings` | `boolean` | |
| `margins` | `{ bottom: number; footer: number; header: number; left: number; right: number; top: number }` | |
| `order` | `PrintOrder` | |
| `orientation` | `PageOrientation` | |
| `paperSize` | `PaperType` | |
| `printArea` | `string` | `$A$1:$D$20`; "" for none. |
| `scale` | `number \| null` | |
| `titleColumns` | `string` | |
| `titleRows` | `string` | |

## `PrintSetup`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `colPt` | `number` | Printed points per screen pixel of a column: the Normal font's digit on paper over its whole-pixel digit. |
| `fit?` | `{ tall: number; wide: number }` | Fit To: pages wide and tall, 0 for automatic. |
| `font` | `NormalFont` | The Normal font, which header and footer text starts in. |
| `footerMargin` | `number` | |
| `headerFooter` | `HeaderFooterText` | |
| `headerMargin` | `number` | Header and footer edges from the paper's top and bottom. |
| `headings` | `boolean` | |
| `margins` | `{ bottom: number; left: number; right: number; top: number }` | |
| `overThenDown` | `boolean` | |
| `pageH` | `number` | |
| `pageW` | `number` | Paper with the orientation applied, in points. |
| `rowPt` | `number` | Printed points per screen pixel of a row. |
| `scale` | `number` | Percent; ignored when `fit` is set. |
