# PdfDocumentOptions Interface

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

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

---

API-only document metadata, reader preferences, compression and security shared by every PDF export entry point.

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

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

### Members

#### Properties

| Property | Description |
|---|---|
| [author](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/author-property/llms-full.txt) | The author value of PdfDocumentOptions. |
| [compress](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/compress-property/llms-full.txt) | Lossless Flate compression where supported, enabled by default. |
| [creator](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/creator-property/llms-full.txt) | The creator value of PdfDocumentOptions. |
| [documentProperties](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/documentproperties-property/llms-full.txt) | The documentProperties value of PdfDocumentOptions. |
| [keywords](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/keywords-property/llms-full.txt) | The keywords value of PdfDocumentOptions. |
| [language](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/language-property/llms-full.txt) | BCP 47 document language. Workbook exports derive it from the print locale when omitted. |
| [pageLayout](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/pagelayout-property/llms-full.txt) | The pageLayout value of PdfDocumentOptions. |
| [pageMode](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/pagemode-property/llms-full.txt) | The pageMode value of PdfDocumentOptions. |
| [pdfUa](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/pdfua-property/llms-full.txt) | Requests PDF/UA-1 metadata and strict checks for language, title, headers, alternatives and glyphs. |
| [security](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/security-property/llms-full.txt) | The security value of PdfDocumentOptions. |
| [subject](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/subject-property/llms-full.txt) | The subject value of PdfDocumentOptions. |
| [tagged](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/tagged-property/llms-full.txt) | Emits logical document tags by default. Set false only for an explicitly untagged PDF. |
| [viewerPreferences](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/viewerpreferences-property/llms-full.txt) | The viewerPreferences value of PdfDocumentOptions. |

### Examples

Configure PdfDocumentOptions 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 { PdfDocumentOptions } from '@txtextcontrol/tx-sheet-control-server';

const pdfDocumentSettings: PdfDocumentOptions = { author: 'Alpine Design', compress: true };
```

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

- [PdfDocumentOptions.author Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/author-property/llms-full.txt): PdfDocumentOptions.author property in the TX Sheet Control TypeScript API for Node.js, with its type string | undefined and a TypeScript example.
- [PdfDocumentOptions.compress Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/compress-property/llms-full.txt): PdfDocumentOptions.compress property in the TX Sheet Control TypeScript API for Node.js: Lossless Flate compression where supported, enabled by default.
- [PdfDocumentOptions.creator Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/creator-property/llms-full.txt): PdfDocumentOptions.creator property in the TX Sheet Control TypeScript API for Node.js, with its type string | undefined and a TypeScript example.
- [PdfDocumentOptions.documentProperties Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/documentproperties-property/llms-full.txt): PdfDocumentOptions.documentProperties property in the Node.js TypeScript API, with its type DocumentProperties | undefined and a TypeScript example.
- [PdfDocumentOptions.keywords Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/keywords-property/llms-full.txt): PdfDocumentOptions.keywords property in the TX Sheet Control TypeScript API for Node.js, with its type string[] | undefined and a TypeScript example.
- [PdfDocumentOptions.language Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/language-property/llms-full.txt): PdfDocumentOptions.language property in the TX Sheet Control TypeScript API for Node.js: BCP 47 document language. Includes the syntax and a TypeScript example.
- [PdfDocumentOptions.pageLayout Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/pagelayout-property/llms-full.txt): PdfDocumentOptions.pageLayout property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [PdfDocumentOptions.pageMode Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/pagemode-property/llms-full.txt): PdfDocumentOptions.pageMode property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [PdfDocumentOptions.pdfUa Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/pdfua-property/llms-full.txt): PdfDocumentOptions.pdfUa property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [PdfDocumentOptions.security Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/security-property/llms-full.txt): PdfDocumentOptions.security property in the TX Sheet Control TypeScript API for Node.js, with its type PdfSecurityOptions | undefined and a TypeScript example.
- [PdfDocumentOptions.subject Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/subject-property/llms-full.txt): PdfDocumentOptions.subject property in the TX Sheet Control TypeScript API for Node.js, with its type string | undefined and a TypeScript example.
- [PdfDocumentOptions.tagged Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/tagged-property/llms-full.txt): PdfDocumentOptions.tagged property in the TX Sheet Control TypeScript API for Node.js: Emits logical document tags by default.
- [PdfDocumentOptions.viewerPreferences Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/viewerpreferences-property/llms-full.txt): PdfDocumentOptions.viewerPreferences property in the Node.js TypeScript API, with its type PdfViewerPreferences | undefined and a TypeScript example.

---

## Nearby

- **Previous:** [PasteOptions.mode Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pasteoptions/mode-property/llms-full.txt)
- **Next:** [PdfDocumentOptions.author Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfdocumentoptions/author-property/llms-full.txt)
