> ## 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: OfficeJS: Page layout and printing

## `HeaderFooterState`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type HeaderFooterState = "Default" | "FirstAndDefault" | "OddAndEven" | "FirstOddAndEven"
```

## `Page`

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

```ts theme={null}
type Page = "odd" | "even" | "first"
```

## `PageLayoutMarginOptions`

`Excel.PageLayoutMarginOptions`.

Import from `@reductoai/xlsx/officejs`.

| Name | Type | Description |
| - | - | - |
| `bottom?` | `number` | |
| `footer?` | `number` | |
| `header?` | `number` | |
| `left?` | `number` | |
| `right?` | `number` | |
| `top?` | `number` | |

## `PageLayoutZoomOptions`

`Excel.PageLayoutZoomOptions`; a fit of 0 leaves that direction automatic.

Import from `@reductoai/xlsx/officejs`.

| Name | Type | Description |
| - | - | - |
| `horizontalFitToPages?` | `number` | |
| `scale?` | `number` | |
| `verticalFitToPages?` | `number` | |

## `PageOrientation`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type PageOrientation = "Portrait" | "Landscape"
```

## `PaperType`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type PaperType = typeof PAPER[number]
```

## `PrintComments`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type PrintComments = "NoComments" | "EndSheet" | "InPlace"
```

## `PrintErrorType`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type PrintErrorType = "AsDisplayed" | "Blank" | "Dash" | "NotAvailable"
```

## `PrintMarginUnit`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type PrintMarginUnit = "Points" | "Inches" | "Centimeters"
```

## `PrintOrder`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type PrintOrder = "DownThenOver" | "OverThenDown"
```
