Package com.winnovative_software
Class ViewerPreferences
java.lang.Object
com.winnovative_software.ViewerPreferences
Represents the viewer preferences of the PDF document
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the flag specifying whether to position the document’s window in the center of the screen when displaying the PDF document generated by the HTML to PDF converterGets the predominant reading order for text when displaying the PDF document generated by the HTML to PDF converterbooleanGets the flag specifying whether the window’s title bar should display the document title taken from the title entry of the document information dictionary when displaying the PDF document generated by the HTML to PDF converterbooleanGets the flag specifying whether to resize the document’s window to fit the size of the first displayed page when displaying the PDF document generated by the HTML to PDF converterbooleanGets the flag specifying whether to hide the viewer application’s menu bar when the document is active when displaying the PDF document generated by the HTML to PDF converterbooleanGets the flag specifying whether to hide the viewer application’s tool bars when the document is active when displaying the PDF document generated by the HTML to PDF converterbooleanGets the flag specifying whether to hide user interface elements in the document’s window (such as scroll bars and navigation controls), leaving only the document’s contents displayed when displaying the PDF document generated by the HTML to PDF converterGets the document’s page mode, specifying how to display the document on exiting full-screen mode when displaying the PDF document generated by the HTML to PDF converter.Gets the page layout to be used when the PDF document generated by the HTML to PDF converter is openedpageMode()Gets how the PDF document generated by the HTML to PDF converter should be displayed when openedvoidsetCenterWindow(boolean centerWindow) Sets the flag specifying whether to position the document’s window in the center of the screen when displaying the PDF document generated by the HTML to PDF converter.voidsetDirection(ViewerTextOrder direction) Sets the predominant reading order for text when displaying the PDF document generated by the HTML to PDF converter.voidsetDisplayDocTitle(boolean displayDocTitle) Sets the flag specifying whether the window’s title bar should display the document title taken from the title entry of the document information dictionary when displaying the PDF document generated by the HTML to PDF converter.voidsetFitWindow(boolean fitWindow) Sets the flag specifying whether to resize the document’s window to fit the size of the first displayed page when displaying the PDF document generated by the HTML to PDF converter.voidsetHideMenuBar(boolean hideMenuBar) Sets the flag specifying whether to hide the viewer application’s menu bar when the document is active when displaying the PDF document generated by the HTML to PDF converter.voidsetHideToolbar(boolean hideToolbar) Sets the flag specifying whether to hide the viewer application’s tool bars when the document is active when displaying the PDF document generated by the HTML to PDF converter.voidsetHideWindowUI(boolean hideWindowUI) Sets the flag specifying whether to hide user interface elements in the document’s window (such as scroll bars and navigation controls), leaving only the document’s contents displayed when displaying the PDF document generated by the HTML to PDF converter.voidsetNonFullScreenPageMode(ViewerFullScreenExitMode nonFullScreenPageMode) Sets the document’s page mode, specifying how to display the document on exiting full-screen mode when displaying the PDF document generated by the HTML to PDF converter.voidsetPageLayout(ViewerPageLayout pageLayout) Sets the page layout to be used when the PDF document generated by the HTML to PDF converter is openedvoidsetPageMode(ViewerPageMode pageMode) Gets how the PDF document generated by the HTML to PDF converter should be displayed when opened.
-
Constructor Details
-
ViewerPreferences
public ViewerPreferences()
-
-
Method Details
-
hideToolbar
public boolean hideToolbar()Gets the flag specifying whether to hide the viewer application’s tool bars when the document is active when displaying the PDF document generated by the HTML to PDF converter- Returns:
- the flag value
-
setHideToolbar
public void setHideToolbar(boolean hideToolbar) Sets the flag specifying whether to hide the viewer application’s tool bars when the document is active when displaying the PDF document generated by the HTML to PDF converter. The default value of this property is true.- Parameters:
hideToolbar- the flag value to set
-
hideMenuBar
public boolean hideMenuBar()Gets the flag specifying whether to hide the viewer application’s menu bar when the document is active when displaying the PDF document generated by the HTML to PDF converter- Returns:
- the flag value
-
setHideMenuBar
public void setHideMenuBar(boolean hideMenuBar) Sets the flag specifying whether to hide the viewer application’s menu bar when the document is active when displaying the PDF document generated by the HTML to PDF converter. Default value is false- Parameters:
hideMenuBar- the flag value to set
-
hideWindowUI
public boolean hideWindowUI()Gets the flag specifying whether to hide user interface elements in the document’s window (such as scroll bars and navigation controls), leaving only the document’s contents displayed when displaying the PDF document generated by the HTML to PDF converter- Returns:
- the flag value
-
setHideWindowUI
public void setHideWindowUI(boolean hideWindowUI) Sets the flag specifying whether to hide user interface elements in the document’s window (such as scroll bars and navigation controls), leaving only the document’s contents displayed when displaying the PDF document generated by the HTML to PDF converter. Default value: False- Parameters:
hideWindowUI- the flag value to set
-
fitWindow
public boolean fitWindow()Gets the flag specifying whether to resize the document’s window to fit the size of the first displayed page when displaying the PDF document generated by the HTML to PDF converter- Returns:
- the flag value
-
setFitWindow
public void setFitWindow(boolean fitWindow) Sets the flag specifying whether to resize the document’s window to fit the size of the first displayed page when displaying the PDF document generated by the HTML to PDF converter. Default value: False- Parameters:
fitWindow- the flag value to set
-
centerWindow
public boolean centerWindow()Gets the flag specifying whether to position the document’s window in the center of the screen when displaying the PDF document generated by the HTML to PDF converter- Returns:
- the flag value
-
setCenterWindow
public void setCenterWindow(boolean centerWindow) Sets the flag specifying whether to position the document’s window in the center of the screen when displaying the PDF document generated by the HTML to PDF converter. Default value: False- Parameters:
centerWindow- the flag value to set
-
displayDocTitle
public boolean displayDocTitle()Gets the flag specifying whether the window’s title bar should display the document title taken from the title entry of the document information dictionary when displaying the PDF document generated by the HTML to PDF converter- Returns:
- the flag value
-
setDisplayDocTitle
public void setDisplayDocTitle(boolean displayDocTitle) Sets the flag specifying whether the window’s title bar should display the document title taken from the title entry of the document information dictionary when displaying the PDF document generated by the HTML to PDF converter. Default value: False- Parameters:
displayDocTitle- the flag value to set
-
nonFullScreenPageMode
Gets the document’s page mode, specifying how to display the document on exiting full-screen mode when displaying the PDF document generated by the HTML to PDF converter. This entry is meaningful only if the value of the PageMode entry in the catalog dictionary is FullScreen; it is ignored otherwise- Returns:
- the full screen exit mode
-
setNonFullScreenPageMode
Sets the document’s page mode, specifying how to display the document on exiting full-screen mode when displaying the PDF document generated by the HTML to PDF converter. This entry is meaningful only if the value of the PageMode entry in the catalog dictionary is FullScreen; it is ignored otherwise Default value: UseNone- Parameters:
nonFullScreenPageMode- the full screen exit mode to set
-
direction
Gets the predominant reading order for text when displaying the PDF document generated by the HTML to PDF converter- Returns:
- the predominant reading order for text
-
setDirection
Sets the predominant reading order for text when displaying the PDF document generated by the HTML to PDF converter. Default value: L2R- Parameters:
direction- the predominant reading order for text to set
-
pageMode
Gets how the PDF document generated by the HTML to PDF converter should be displayed when opened- Returns:
- the page mode
-
setPageMode
Gets how the PDF document generated by the HTML to PDF converter should be displayed when opened. Default value: UseNone- Parameters:
pageMode- the page mode to set
-
pageLayout
Gets the page layout to be used when the PDF document generated by the HTML to PDF converter is opened- Returns:
- the page layout
-
setPageLayout
Sets the page layout to be used when the PDF document generated by the HTML to PDF converter is opened- Parameters:
pageLayout- the page layout to set
-