# PdfViewerPreferences Interface

> PdfViewerPreferences interface in the TX Sheet Control TypeScript API for Node.js, with 17 properties and a TypeScript example.

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

---

PDF 1.7 reader preferences. A viewer may choose whether to honor these presentation and printing hints.

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

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [centerWindow](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/centerwindow-property/llms-full.txt) | The centerWindow value of PdfViewerPreferences. |
| [direction](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/direction-property/llms-full.txt) | The direction value of PdfViewerPreferences. |
| [displayDocTitle](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/displaydoctitle-property/llms-full.txt) | Defaults to true for tagged documents; PDF/UA requires true. |
| [duplex](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/duplex-property/llms-full.txt) | The duplex value of PdfViewerPreferences. |
| [fitWindow](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/fitwindow-property/llms-full.txt) | The fitWindow value of PdfViewerPreferences. |
| [hideMenubar](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/hidemenubar-property/llms-full.txt) | The hideMenubar value of PdfViewerPreferences. |
| [hideToolbar](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/hidetoolbar-property/llms-full.txt) | The hideToolbar value of PdfViewerPreferences. |
| [hideWindowUI](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/hidewindowui-property/llms-full.txt) | The hideWindowUI value of PdfViewerPreferences. |
| [nonFullScreenPageMode](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/nonfullscreenpagemode-property/llms-full.txt) | The nonFullScreenPageMode value of PdfViewerPreferences. |
| [numCopies](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/numcopies-property/llms-full.txt) | Suggested number of print copies, from 1 through 32767. |
| [pickTrayByPDFSize](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/picktraybypdfsize-property/llms-full.txt) | The pickTrayByPDFSize value of PdfViewerPreferences. |
| [printArea](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/printarea-property/llms-full.txt) | The printArea value of PdfViewerPreferences. |
| [printClip](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/printclip-property/llms-full.txt) | The printClip value of PdfViewerPreferences. |
| [printPageRange](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/printpagerange-property/llms-full.txt) | Inclusive, one-based page pairs, for example \[1, 3, 5, 5\]. Converted to PDF's zero-based representation. |
| [printScaling](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/printscaling-property/llms-full.txt) | The printScaling value of PdfViewerPreferences. |
| [viewArea](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/viewarea-property/llms-full.txt) | The viewArea value of PdfViewerPreferences. |
| [viewClip](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/viewclip-property/llms-full.txt) | The viewClip value of PdfViewerPreferences. |

### Examples

Pass the PdfViewerPreferences value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

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

function inspectPdfViewerPreferencesHideToolbar(pdfViewerPreferences: PdfViewerPreferences) {
    const value = pdfViewerPreferences['hideToolbar'];
    console.log('PdfViewerPreferences.hideToolbar', value);
}
```

### 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

- [PdfViewerPreferences.centerWindow Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/centerwindow-property/llms-full.txt): PdfViewerPreferences.centerWindow property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [PdfViewerPreferences.direction Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/direction-property/llms-full.txt): PdfViewerPreferences.direction property in the Node.js TypeScript API, with its type "leftToRight" | "rightToLeft" | undefined and a TypeScript example.
- [PdfViewerPreferences.displayDocTitle Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/displaydoctitle-property/llms-full.txt): PdfViewerPreferences.displayDocTitle property in the TX Sheet Control TypeScript API for Node.js: Defaults to true for tagged documents; PDF/UA requires true.
- [PdfViewerPreferences.duplex Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/duplex-property/llms-full.txt): PdfViewerPreferences.duplex property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [PdfViewerPreferences.fitWindow Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/fitwindow-property/llms-full.txt): PdfViewerPreferences.fitWindow property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [PdfViewerPreferences.hideMenubar Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/hidemenubar-property/llms-full.txt): PdfViewerPreferences.hideMenubar property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [PdfViewerPreferences.hideToolbar Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/hidetoolbar-property/llms-full.txt): PdfViewerPreferences.hideToolbar property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [PdfViewerPreferences.hideWindowUI Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/hidewindowui-property/llms-full.txt): PdfViewerPreferences.hideWindowUI property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [PdfViewerPreferences.nonFullScreenPageMode Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/nonfullscreenpagemode-property/llms-full.txt): PdfViewerPreferences.nonFullScreenPageMode property in the TX Sheet Control TypeScript API for Node.js, with a TypeScript example.
- [PdfViewerPreferences.numCopies Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/numcopies-property/llms-full.txt): PdfViewerPreferences.numCopies property in the TX Sheet Control TypeScript API for Node.js: Suggested number of print copies, from 1 through 32767.
- [PdfViewerPreferences.pickTrayByPDFSize Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/picktraybypdfsize-property/llms-full.txt): PdfViewerPreferences.pickTrayByPDFSize property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [PdfViewerPreferences.printArea Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/printarea-property/llms-full.txt): PdfViewerPreferences.printArea property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [PdfViewerPreferences.printClip Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/printclip-property/llms-full.txt): PdfViewerPreferences.printClip property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [PdfViewerPreferences.printPageRange Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/printpagerange-property/llms-full.txt): PdfViewerPreferences.printPageRange property in the TX Sheet Control TypeScript API for Node.js: Inclusive, one-based page pairs, for example [1, 3, 5, 5].
- [PdfViewerPreferences.printScaling Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/printscaling-property/llms-full.txt): PdfViewerPreferences.printScaling property in the Node.js TypeScript API, with its type "none" | "appDefault" | undefined and a TypeScript example.
- [PdfViewerPreferences.viewArea Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/viewarea-property/llms-full.txt): PdfViewerPreferences.viewArea property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [PdfViewerPreferences.viewClip Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/viewclip-property/llms-full.txt): PdfViewerPreferences.viewClip property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.

---

## Nearby

- **Previous:** [PdfSecurityOptions.userPassword Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfsecurityoptions/userpassword-property/llms-full.txt)
- **Next:** [PdfViewerPreferences.centerWindow Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfviewerpreferences/centerwindow-property/llms-full.txt)
