ViewerPreferences Class
Contains viewer preference settings for a PDF document.
Declaration
public class ViewerPreferences extends JavaObject
Inherited Members
Inheritance
ViewerPreferences()
Initializes a new instance of the ViewerPreferences class.
Declaration
public ViewerPreferences()
Methods
getCenterWindow() Method
Returns whether the viewer centers the document window on screen.
Declaration
public boolean getCenterWindow()
Returns
| Type | Description |
|---|---|
| boolean |
|
getDirection() Method
Returns the document reading direction.
Declaration
public ReadingDirection getDirection()
Returns
| Type | Description |
|---|---|
| ReadingDirection | The document reading direction. |
getDisplayDocTitle() Method
Returns whether the viewer displays the document title in the title bar.
Declaration
public boolean getDisplayDocTitle()
Returns
| Type | Description |
|---|---|
| boolean |
|
getFitWindow() Method
Returns whether the viewer resizes the document window to fit the first page.
Declaration
public boolean getFitWindow()
Returns
| Type | Description |
|---|---|
| boolean |
|
getHideMenuBar() Method
Returns whether the viewer hides the menu bar.
Declaration
public boolean getHideMenuBar()
Returns
| Type | Description |
|---|---|
| boolean |
|
getHideToolbar() Method
Returns whether the viewer hides the toolbar.
Declaration
public boolean getHideToolbar()
Returns
| Type | Description |
|---|---|
| boolean |
|
getHideWindowUI() Method
Returns whether the viewer hides user interface elements in the document window.
Declaration
public boolean getHideWindowUI()
Returns
| Type | Description |
|---|---|
| boolean |
|
getNonFullScreenPageMode() Method
Returns the page mode used after the viewer exits full-screen mode.
Declaration
public NonFullScreenPageMode getNonFullScreenPageMode()
Returns
| Type | Description |
|---|---|
| NonFullScreenPageMode | The page mode used after the viewer exits full-screen mode. |
getPickTrayByPDFSize() Method
Returns whether the viewer selects the print tray by PDF page size.
Declaration
public boolean getPickTrayByPDFSize()
Returns
| Type | Description |
|---|---|
| boolean |
|
getPrintArea() Method
Returns the page boundary used as the print area.
Declaration
public ViewAreaBox getPrintArea()
Returns
| Type | Description |
|---|---|
| ViewAreaBox | The page boundary used as the print area. |
getPrintClip() Method
Returns the page boundary used as the print clipping area.
Declaration
public ViewAreaBox getPrintClip()
Returns
| Type | Description |
|---|---|
| ViewAreaBox | The page boundary used as the print clipping area. |
getPrintMode() Method
Returns the duplex print mode.
Declaration
public PrintDuplexMode getPrintMode()
Returns
| Type | Description |
|---|---|
| PrintDuplexMode | The duplex print mode. |
getPrintNumCopies() Method
Returns the number of print copies.
Declaration
public int getPrintNumCopies()
Returns
| Type | Description |
|---|---|
| int | The number of print copies. |
getPrintPageRange() Method
Returns the print page ranges.
Declaration
public List<PrintPageRange> getPrintPageRange()
Returns
| Type | Description |
|---|---|
| java.util.List<PrintPageRange> | The print page ranges. |
getPrintScaling() Method
Returns the print scaling mode.
Declaration
public PrintScalingMode getPrintScaling()
Returns
| Type | Description |
|---|---|
| PrintScalingMode | The print scaling mode. |
getViewArea() Method
Returns the page boundary used as the view area.
Declaration
public ViewAreaBox getViewArea()
Returns
| Type | Description |
|---|---|
| ViewAreaBox | The page boundary used as the view area. |
getViewClip() Method
Returns the page boundary used as the view clipping area.
Declaration
public ViewAreaBox getViewClip()
Returns
| Type | Description |
|---|---|
| ViewAreaBox | The page boundary used as the view clipping area. |
setCenterWindow(boolean value) Method
Sets whether the viewer centers the document window on screen.
Declaration
public void setCenterWindow(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setDirection(ReadingDirection value) Method
Sets the document reading direction.
Declaration
public void setDirection(ReadingDirection value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ReadingDirection | The document reading direction. |
setDisplayDocTitle(boolean value) Method
Sets whether the viewer displays the document title in the title bar.
Declaration
public void setDisplayDocTitle(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setFitWindow(boolean value) Method
Sets whether the viewer resizes the document window to fit the first page.
Declaration
public void setFitWindow(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setHideMenuBar(boolean value) Method
Sets whether the viewer hides the menu bar.
Declaration
public void setHideMenuBar(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setHideToolbar(boolean value) Method
Sets whether the viewer hides the toolbar.
Declaration
public void setHideToolbar(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setHideWindowUI(boolean value) Method
Sets whether the viewer hides user interface elements in the document window.
Declaration
public void setHideWindowUI(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setNonFullScreenPageMode(NonFullScreenPageMode value) Method
Sets the page mode used after the viewer exits full-screen mode.
Declaration
public void setNonFullScreenPageMode(NonFullScreenPageMode value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | NonFullScreenPageMode | The page mode used after the viewer exits full-screen mode. |
setPickTrayByPDFSize(boolean value) Method
Sets whether the viewer selects the print tray by PDF page size.
Declaration
public void setPickTrayByPDFSize(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setPrintArea(ViewAreaBox value) Method
Sets the page boundary used as the print area.
Declaration
public void setPrintArea(ViewAreaBox value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ViewAreaBox | The page boundary used as the print area. |
setPrintClip(ViewAreaBox value) Method
Sets the page boundary used as the print clipping area.
Declaration
public void setPrintClip(ViewAreaBox value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ViewAreaBox | The page boundary used as the print clipping area. |
setPrintMode(PrintDuplexMode value) Method
Sets the duplex print mode.
Declaration
public void setPrintMode(PrintDuplexMode value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | PrintDuplexMode | The duplex print mode. |
setPrintNumCopies(int value) Method
Sets the number of print copies.
Declaration
public void setPrintNumCopies(int value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | int | The number of print copies. |
setPrintPageRange(List<PrintPageRange> value) Method
Sets print page ranges.
Declaration
public void setPrintPageRange(List<PrintPageRange> value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | java.util.List<PrintPageRange> | Print page ranges. |
setPrintScaling(PrintScalingMode value) Method
Sets the print scaling mode.
Declaration
public void setPrintScaling(PrintScalingMode value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | PrintScalingMode | The print scaling mode. |
setViewArea(ViewAreaBox value) Method
Sets the page boundary used as the view area.
Declaration
public void setViewArea(ViewAreaBox value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ViewAreaBox | The page boundary used as the view area. |
setViewClip(ViewAreaBox value) Method
Sets the page boundary used as the view clipping area.
Declaration
public void setViewClip(ViewAreaBox value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ViewAreaBox | The page boundary used as the view clipping area. |