ViewerPreferences
Overview
ViewerPreferences is a class in Aspose.Pdf FOSS for Java.
PDF viewer preferences (ISO 32000-1:2008, §12.2, Table 150).
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. |
cOSDictionary | COSDictionary | Read | Returns the underlying dictionary. |
Methods
| Signature | Description |
|---|---|
ViewerPreferences(dict: COSDictionary) | Wraps a viewer preferences dictionary. |
getHideToolbar() → boolean | /HideToolbar. |
setHideToolbar(v: boolean) | |
getHideMenubar() → boolean | /HideMenubar. |
setHideMenubar(v: boolean) | |
getHideWindowUI() → boolean | /HideWindowUI. |
setHideWindowUI(v: boolean) | |
getFitWindow() → boolean | /FitWindow. |
setFitWindow(v: boolean) | |
getCenterWindow() → boolean | /CenterWindow. |
setCenterWindow(v: boolean) | |
getDisplayDocTitle() → boolean | /DisplayDocTitle. |
setDisplayDocTitle(v: boolean) | |
getNonFullScreenPageMode() → String | /NonFullScreenPageMode: UseNone, UseOutlines, UseThumbs, UseOC. |
setNonFullScreenPageMode(mode: String) | |
getDirection() → String | /Direction: L2R or R2L. |
setDirection(dir: String) | |
getDuplex() → String | /Duplex: Simplex, DuplexFlipShortEdge, DuplexFlipLongEdge. |
setDuplex(duplex: String) | |
getPrintScaling() → String | /PrintScaling: AppDefault, None. |
setPrintScaling(scaling: String) | |
getNumCopies() → int | /NumCopies. |
setNumCopies(n: int) | |
getPrintPageRange() → int[] | /PrintPageRange — array of page ranges. |
getCOSDictionary() → COSDictionary | Returns the underlying dictionary. |