PdfViewerPreferences Interface
PDF 1.7 reader preferences. A viewer may choose whether to honor these presentation and printing hints.
Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.
Type-only declaration; it is not a JavaScript runtime constructor.
Members
Properties
| Property | Description |
|---|---|
| centerWindow | The centerWindow value of PdfViewerPreferences. |
| direction | The direction value of PdfViewerPreferences. |
| displayDocTitle | Defaults to true for tagged documents; PDF/UA requires true. |
| duplex | The duplex value of PdfViewerPreferences. |
| fitWindow | The fitWindow value of PdfViewerPreferences. |
| hideMenubar | The hideMenubar value of PdfViewerPreferences. |
| hideToolbar | The hideToolbar value of PdfViewerPreferences. |
| hideWindowUI | The hideWindowUI value of PdfViewerPreferences. |
| nonFullScreenPageMode | The nonFullScreenPageMode value of PdfViewerPreferences. |
| numCopies | Suggested number of print copies, from 1 through 32767. |
| pickTrayByPDFSize | The pickTrayByPDFSize value of PdfViewerPreferences. |
| printArea | The printArea value of PdfViewerPreferences. |
| printClip | The printClip value of PdfViewerPreferences. |
| printPageRange | Inclusive, one-based page pairs, for example [1, 3, 5, 5]. Converted to PDF's zero-based representation. |
| printScaling | The printScaling value of PdfViewerPreferences. |
| viewArea | The viewArea value of PdfViewerPreferences. |
| viewClip | 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.
import type { PdfViewerPreferences } from '@txtextcontrol/tx-sheet-control';
function inspectPdfViewerPreferencesHideToolbar(pdfViewerPreferences: PdfViewerPreferences) {
const value = pdfViewerPreferences['hideToolbar'];
console.log('PdfViewerPreferences.hideToolbar', value);
}