> ## 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: Sections and pages

## `BreakType`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type BreakType = typeof BreakType[keyof typeof BreakType]
```

## `GutterPosition`

Word.GutterPosition; Right (`w:rtlGutter`) is not painted, so it is refused.

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type GutterPosition = "Left" | "Top"
```

## `HeaderFooterAlignment`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type HeaderFooterAlignment = "left" | "center" | "right" | Alignment
```

## `HeaderFooterInsertLocation`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type HeaderFooterInsertLocation = Extract<InsertLocation, "Start" | "End" | "Replace">
```

## `HeaderFooterKind`

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

```ts theme={null}
type HeaderFooterKind = "header" | "footer"
```

## `HeaderFooterParagraphOptions`

Header/footer paragraphs are not addressable Paragraph handles yet, so the
insert verb takes alignment + run formatting up front instead of returning
a handle to restyle afterwards.

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type HeaderFooterParagraphOptions = Omit<RunFormat, "reset" | "resizeFont"> & { alignment?: HeaderFooterAlignment }
```

## `HeaderFooterType`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type HeaderFooterType = typeof HeaderFooterType[keyof typeof HeaderFooterType]
```

## `HeaderFooterUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type HeaderFooterUpdateData = WritableProperties<HeaderFooter> & { font?: FontSetFormat }
```

## `InsertPageNumberOptions`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

| Name | Type | Description |
| - | - | - |
| `alignment?` | `HeaderFooterAlignment` | |
| `template?` | `string` | "\{page}" and "\{pages}" become live PAGE / NUMPAGES fields. |

## `LineNumberingHost`

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

| Name | Type | Description |
| - | - | - |
| `sectPr()` | `() => XElement` | |
| `write()` | `(apply: () => void) => void` | |

## `LineNumberingRestart`

Word.NumberingRule: when the count starts again.

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type LineNumberingRestart = "RestartContinuous" | "RestartSection" | "RestartPage"
```

## `PageBorderCollectionUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type PageBorderCollectionUpdateData = WritableProperties<PageBorderCollection>
```

## `PageBorderLocation`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type PageBorderLocation = "Top" | "Left" | "Bottom" | "Right"
```

## `PageBorderScope`

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

| Name | Type | Description |
| - | - | - |
| `ctx` | `FacadeContext` | |
| `sections()` | `() => XElement[]` | Every section's sectPr, for applyPageBordersToAllSections. |
| `sectPr()` | `() => XElement` | |

## `PageBorderUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type PageBorderUpdateData = WritableProperties<PageBorder>
```

## `RulerStyle`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type RulerStyle = "None" | "Proportional" | "FirstColumn" | "SameWidth"
```

## `SectionBreakType`

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

```ts theme={null}
type SectionBreakType = Extract<BreakType, `Section${string}`>
```

## `SectionDirection`

The section's reading order, as OfficeJS spells `Word.SectionDirection`.

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type SectionDirection = "RightToLeft" | "LeftToRight"
```

## `SectionPageSetupUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type SectionPageSetupUpdateData = WritableProperties<SectionPageSetup>
```

## `SectionUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type SectionUpdateData = WritableProperties<Section> & { body?: BodyUpdateData; pageSetup?: SectionPageSetupUpdateData }
```

## `TextColumnAddOptions`

Import from `@reductoai/docx/officejs`.

| Name | Type | Description |
| - | - | - |
| `isEvenlySpaced?` | `boolean` | |
| `spacing?` | `number` | |
| `width?` | `number` | |

## `TextColumnUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type TextColumnUpdateData = WritableProperties<TextColumn>
```
