TX Sheet Control

PdfViewerPreferences Interface

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

PropertyDescription
centerWindowThe centerWindow value of PdfViewerPreferences.
directionThe direction value of PdfViewerPreferences.
displayDocTitleDefaults to true for tagged documents; PDF/UA requires true.
duplexThe duplex value of PdfViewerPreferences.
fitWindowThe fitWindow value of PdfViewerPreferences.
hideMenubarThe hideMenubar value of PdfViewerPreferences.
hideToolbarThe hideToolbar value of PdfViewerPreferences.
hideWindowUIThe hideWindowUI value of PdfViewerPreferences.
nonFullScreenPageModeThe nonFullScreenPageMode value of PdfViewerPreferences.
numCopiesSuggested number of print copies, from 1 through 32767.
pickTrayByPDFSizeThe pickTrayByPDFSize value of PdfViewerPreferences.
printAreaThe printArea value of PdfViewerPreferences.
printClipThe printClip value of PdfViewerPreferences.
printPageRangeInclusive, one-based page pairs, for example [1, 3, 5, 5]. Converted to PDF's zero-based representation.
printScalingThe printScaling value of PdfViewerPreferences.
viewAreaThe viewArea value of PdfViewerPreferences.
viewClipThe 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);
}

See Also