PdfDocumentOptions Interface
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 | The author value of PdfDocumentOptions. |
| compress | Lossless Flate compression where supported, enabled by default. |
| creator | The creator value of PdfDocumentOptions. |
| documentProperties | The documentProperties value of PdfDocumentOptions. |
| keywords | The keywords value of PdfDocumentOptions. |
| language | BCP 47 document language. Workbook exports derive it from the print locale when omitted. |
| pageLayout | The pageLayout value of PdfDocumentOptions. |
| pageMode | The pageMode value of PdfDocumentOptions. |
| pdfUa | Requests PDF/UA-1 metadata and strict checks for language, title, headers, alternatives and glyphs. |
| security | The security value of PdfDocumentOptions. |
| subject | The subject value of PdfDocumentOptions. |
| tagged | Emits logical document tags by default. Set false only for an explicitly untagged PDF. |
| viewerPreferences | 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.
import type { PdfDocumentOptions } from '@txtextcontrol/tx-sheet-control-server';
const pdfDocumentSettings: PdfDocumentOptions = { author: 'Alpine Design', compress: true };