ViewerPreferences

ViewerPreferences

Overview

ViewerPreferences is a class in Aspose.PDF FOSS for Java.

PDF viewer preferences (ISO 32000-1:2008, §12.2, Table 150).

This class provides 25 methods for working with ViewerPreferences objects in Java programs. Available methods include: ViewerPreferences, getCenterWindow, getDirection, getDisplayDocTitle, getDuplex, getFitWindow, getHideMenubar, getHideToolbar, getHideWindowUI, getNonFullScreenPageMode, getNumCopies, getPdfDictionary, and 13 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: centerWindow, direction, displayDocTitle, duplex, fitWindow, hideMenubar, and 7 more.

Properties

NameTypeAccessDescription
hideToolbarbooleanRead/HideToolbar.
hideMenubarbooleanRead/HideMenubar.
hideWindowUIbooleanRead/HideWindowUI.
fitWindowbooleanRead/FitWindow.
centerWindowbooleanRead/CenterWindow.
displayDocTitlebooleanRead/DisplayDocTitle.
nonFullScreenPageModeStringRead/NonFullScreenPageMode: UseNone, UseOutlines, UseThumbs, UseOC.
directionStringRead/Direction: L2R or R2L.
duplexStringRead/Duplex: Simplex, DuplexFlipShortEdge, DuplexFlipLongEdge.
printScalingStringRead/PrintScaling: AppDefault, None.
numCopiesintRead/NumCopies.
printPageRangeint[]Read/PrintPageRange — array of page ranges.
pdfDictionaryPdfDictionaryReadReturns the underlying dictionary.

Methods

SignatureDescription
ViewerPreferences(dict: PdfDictionary)Wraps a viewer preferences dictionary.
getHideToolbar()boolean/HideToolbar.
setHideToolbar(v: boolean)Sets the hide toolbar value.
getHideMenubar()boolean/HideMenubar.
setHideMenubar(v: boolean)Sets the hide menubar value.
getHideWindowUI()boolean/HideWindowUI.
setHideWindowUI(v: boolean)Sets the hide window ui value.
getFitWindow()boolean/FitWindow.
setFitWindow(v: boolean)Sets the fit window value.
getCenterWindow()boolean/CenterWindow.
setCenterWindow(v: boolean)Sets the center window value.
getDisplayDocTitle()boolean/DisplayDocTitle.
setDisplayDocTitle(v: boolean)Sets the display doc title value.
getNonFullScreenPageMode()String/NonFullScreenPageMode: UseNone, UseOutlines, UseThumbs, UseOC.
setNonFullScreenPageMode(mode: String)Sets the non full screen page mode value.
getDirection()String/Direction: L2R or R2L.
setDirection(dir: String)Sets the direction value.
getDuplex()String/Duplex: Simplex, DuplexFlipShortEdge, DuplexFlipLongEdge.
setDuplex(duplex: String)Sets the duplex value.
getPrintScaling()String/PrintScaling: AppDefault, None.
setPrintScaling(scaling: String)Sets the print scaling value.
getNumCopies()int/NumCopies.
setNumCopies(n: int)Sets the num copies value.
getPrintPageRange()int[]/PrintPageRange — array of page ranges.
getPdfDictionary()PdfDictionaryReturns the underlying dictionary.

See Also

 English