# HeaderFooterSettings.scaleWithDocument Property

> HeaderFooterSettings.scaleWithDocument property in the TX Sheet Control TypeScript API for Node.js, with its type boolean and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > HeaderFooterSettings > HeaderFooterSettings.scaleWithDocument Property
- **508 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/headerfootersettings/scalewithdocument-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/headerfootersettings/scalewithdocument-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/headerfootersettings/scalewithdocument-property/llms-full.txt

---

The scaleWithDocument value of HeaderFooterSettings.

Owner: [HeaderFooterSettings](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/headerfootersettings/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

### Syntax

```typescript
scaleWithDocument: boolean
```

Read through the owning object: `owner.scaleWithDocument`. Follow the declared mutability and owning object lifetime.

### Examples

Configure HeaderFooterSettings for an invoice or sales-report workflow. Supply font and document resources from the application where the example accepts them as inputs.

```typescript
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

const headerFooterSettings: Awaited<
    ReturnType<ServerSheetControl['workbook']['sheets']['get']>
>['print']['settings']['headerFooter'] = {
    oddHeader: 'Invoice',
    oddFooter: 'Invoice',
    evenHeader: 'Invoice',
    evenFooter: 'Invoice',
    firstHeader: 'Invoice',
    firstFooter: 'Invoice',
    differentFirst: false,
    differentOddEven: false,
    alignWithMargins: false,
    scaleWithDocument: false,
};

console.log(headerFooterSettings['scaleWithDocument']);
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [HeaderFooterSettings Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/headerfootersettings/llms-full.txt)
- [Loading and Saving Workbooks](https://docs.textcontrol.com/tx-sheet-control/document-processing/load-save/llms-full.txt)

---

## Nearby

- **Previous:** [HeaderFooterSettings.oddHeader Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/headerfootersettings/oddheader-property/llms-full.txt)
- **Next:** [JsonSaveOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/jsonsaveoptions/llms-full.txt)
