# PageSetupPatch Type

> PageSetupPatch type alias in the TX Sheet Control TypeScript API for Node.js, with its syntax, 18 properties and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > PageSetupPatch Type
- **1217 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/llms-full.txt

---

Public type for PageSetupPatch.

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Syntax

```typescript
type PageSetupPatch = Partial<Omit<PageSetup, 'margins' | 'headerFooter'>> & {
    margins?: Partial<PageSetup['margins']>;
    headerFooter?: Partial<HeaderFooterSettings>;
};
```

### Members

#### Properties

| Property | Description |
|---|---|
| [columnBreaks](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/columnbreaks-property/llms-full.txt) | The columnBreaks value of PageSetupPatch. |
| [fitToHeight](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/fittoheight-property/llms-full.txt) | The fitToHeight value of PageSetupPatch. |
| [fitToPage](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/fittopage-property/llms-full.txt) | The fitToPage value of PageSetupPatch. |
| [fitToWidth](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/fittowidth-property/llms-full.txt) | The fitToWidth value of PageSetupPatch. |
| [headerFooter](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/headerfooter-property/llms-full.txt) | The headerFooter value of PageSetupPatch. |
| [margins](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/margins-property/llms-full.txt) | The margins value of PageSetupPatch. |
| [orientation](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/orientation-property/llms-full.txt) | The orientation value of PageSetupPatch. |
| [pageOrder](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/pageorder-property/llms-full.txt) | The pageOrder value of PageSetupPatch. |
| [paperHeight](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/paperheight-property/llms-full.txt) | The paperHeight value of PageSetupPatch. |
| [paperSize](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/papersize-property/llms-full.txt) | The paperSize value of PageSetupPatch. |
| [paperWidth](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/paperwidth-property/llms-full.txt) | The paperWidth value of PageSetupPatch. |
| [printArea](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/printarea-property/llms-full.txt) | The printArea value of PageSetupPatch. |
| [printGridlines](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/printgridlines-property/llms-full.txt) | The printGridlines value of PageSetupPatch. |
| [printHeadings](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/printheadings-property/llms-full.txt) | The printHeadings value of PageSetupPatch. |
| [rowBreaks](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/rowbreaks-property/llms-full.txt) | The rowBreaks value of PageSetupPatch. |
| [scale](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/scale-property/llms-full.txt) | The scale value of PageSetupPatch. |
| [showGridlines](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/showgridlines-property/llms-full.txt) | The showGridlines value of PageSetupPatch. |
| [showHeadings](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/showheadings-property/llms-full.txt) | The showHeadings value of PageSetupPatch. |

### Examples

Use a fresh workbook. Create and format the sample data, apply this API and retain the returned document or result in your application. In the browser pass editor.workbook; in Node.js pass the server control.

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

function createPageSetupPatchReport(control: ServerSheetControl, settings: { showGridlines: boolean | undefined }) {
    const book = control.workbook;
    const sheet = book.sheets.at(0);
    sheet.cell('A1').setText('October invoice');
    sheet
        .cell('A1')
        .format({
            fontFamily: 'Liberation Sans',
            fontSize: 16,
            bold: true,
            textColor: '#ffffff',
            fillColor: '#163b63',
        });

    sheet.columns.at(0).setWidth({ pixels: 240 });
    sheet.range('B8:B9').setValues([[120], [80]]);
    sheet.cell('B10').setFormula('=SUM(B8:B9)');
    sheet.range('B8:B10').format({ numberFormatCode: '#,##0.00', fontSize: 11 });
    sheet.print.configure({ ...settings });
    return sheet;
}
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Exporting Worksheets to PDF](https://docs.textcontrol.com/tx-sheet-control/pdf/export/llms-full.txt)

---

## In This Section

- [PageSetupPatch.columnBreaks Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/columnbreaks-property/llms-full.txt): PageSetupPatch.columnBreaks property in the TX Sheet Control TypeScript API for Node.js, with its type number[] | undefined and a TypeScript example.
- [PageSetupPatch.fitToHeight Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/fittoheight-property/llms-full.txt): PageSetupPatch.fitToHeight property in the TX Sheet Control TypeScript API for Node.js, with its type number | undefined and a TypeScript example.
- [PageSetupPatch.fitToPage Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/fittopage-property/llms-full.txt): PageSetupPatch.fitToPage property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [PageSetupPatch.fitToWidth Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/fittowidth-property/llms-full.txt): PageSetupPatch.fitToWidth property in the TX Sheet Control TypeScript API for Node.js, with its type number | undefined and a TypeScript example.
- [PageSetupPatch.headerFooter Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/headerfooter-property/llms-full.txt): PageSetupPatch.headerFooter property in the Node.js TypeScript API, with its type Partial<HeaderFooterSettings> | undefined and a TypeScript example.
- [PageSetupPatch.margins Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/margins-property/llms-full.txt): PageSetupPatch.margins property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [PageSetupPatch.orientation Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/orientation-property/llms-full.txt): PageSetupPatch.orientation property in the Node.js TypeScript API, with its type "portrait" | "landscape" | undefined and a TypeScript example.
- [PageSetupPatch.pageOrder Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/pageorder-property/llms-full.txt): PageSetupPatch.pageOrder property in the Node.js TypeScript API, with its type "downThenOver" | "overThenDown" | undefined and a TypeScript example.
- [PageSetupPatch.paperHeight Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/paperheight-property/llms-full.txt): PageSetupPatch.paperHeight property in the TX Sheet Control TypeScript API for Node.js, with its type number | null | undefined and a TypeScript example.
- [PageSetupPatch.paperSize Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/papersize-property/llms-full.txt): PageSetupPatch.paperSize property in the TX Sheet Control TypeScript API for Node.js, with its type number | undefined and a TypeScript example.
- [PageSetupPatch.paperWidth Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/paperwidth-property/llms-full.txt): PageSetupPatch.paperWidth property in the TX Sheet Control TypeScript API for Node.js, with its type number | null | undefined and a TypeScript example.
- [PageSetupPatch.printArea Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/printarea-property/llms-full.txt): PageSetupPatch.printArea property in the TX Sheet Control TypeScript API for Node.js, with its type string | null | undefined and a TypeScript example.
- [PageSetupPatch.printGridlines Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/printgridlines-property/llms-full.txt): PageSetupPatch.printGridlines property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [PageSetupPatch.printHeadings Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/printheadings-property/llms-full.txt): PageSetupPatch.printHeadings property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [PageSetupPatch.rowBreaks Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/rowbreaks-property/llms-full.txt): PageSetupPatch.rowBreaks property in the TX Sheet Control TypeScript API for Node.js, with its type number[] | undefined and a TypeScript example.
- [PageSetupPatch.scale Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/scale-property/llms-full.txt): PageSetupPatch.scale property in the TX Sheet Control TypeScript API for Node.js, with its type number | undefined and a TypeScript example.
- [PageSetupPatch.showGridlines Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/showgridlines-property/llms-full.txt): PageSetupPatch.showGridlines property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [PageSetupPatch.showHeadings Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/showheadings-property/llms-full.txt): PageSetupPatch.showHeadings property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.

---

## Nearby

- **Previous:** [PageSetup.showHeadings Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetup/showheadings-property/llms-full.txt)
- **Next:** [PageSetupPatch.columnBreaks Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/columnbreaks-property/llms-full.txt)
