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
| Name | Type | Access | Description |
|---|---|---|---|
hideToolbar | boolean | Read | /HideToolbar. |
hideMenubar | boolean | Read | /HideMenubar. |
hideWindowUI | boolean | Read | /HideWindowUI. |
fitWindow | boolean | Read | /FitWindow. |
centerWindow | boolean | Read | /CenterWindow. |
displayDocTitle | boolean | Read | /DisplayDocTitle. |
nonFullScreenPageMode | String | Read | /NonFullScreenPageMode: UseNone, UseOutlines, UseThumbs, UseOC. |
direction | String | Read | /Direction: L2R or R2L. |
duplex | String | Read | /Duplex: Simplex, DuplexFlipShortEdge, DuplexFlipLongEdge. |
printScaling | String | Read | /PrintScaling: AppDefault, None. |
numCopies | int | Read | /NumCopies. |
printPageRange | int[] | Read | /PrintPageRange — array of page ranges. |
pdfDictionary | PdfDictionary | Read | Returns the underlying dictionary. |
Methods
| Signature | Description |
|---|---|
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() → PdfDictionary | Returns the underlying dictionary. |