Class ViewerSettings
- java.lang.Object
-
- com.pdftools.toolbox.internal.NativeBase
-
- com.pdftools.toolbox.internal.NativeObject
-
- com.pdftools.toolbox.pdf.navigation.ViewerSettings
-
public class ViewerSettings extends NativeObject
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ViewerSettingscopy(Document targetDocument, ViewerSettings viewerSettings)Copy viewer settingsViewerNavigationPanegetActivePane()The initially visible side pane when opening the document in a viewer.booleangetDisplayDocumentTitle()Iftruethen opening the document will instruct the viewer to display the document's title from the metadata instead of it's file name.booleangetFullScreen()Iftruethen opening the document will make the viewer try to enter full screen mode.booleangetHideMenubar()Iftruethen opening the document will instruct the viewer to hide it's menu bar.booleangetHideToolbar()Iftruethen opening the document will instruct the viewer to hide it's toolbar.PageDisplaygetPageDisplay()The positional arrangment for displaying pages when opening the document in a viewer.voidsetActivePane(ViewerNavigationPane value)The initially visible side pane when opening the document in a viewer.voidsetDisplayDocumentTitle(boolean value)Iftruethen opening the document will instruct the viewer to display the document's title from the metadata instead of it's file name.voidsetFullScreen(boolean value)Iftruethen opening the document will make the viewer try to enter full screen mode.voidsetHideMenubar(boolean value)Iftruethen opening the document will instruct the viewer to hide it's menu bar.voidsetHideToolbar(boolean value)Iftruethen opening the document will instruct the viewer to hide it's toolbar.voidsetPageDisplay(PageDisplay value)The positional arrangment for displaying pages when opening the document in a viewer.-
Methods inherited from class com.pdftools.toolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
copy
public static ViewerSettings copy(Document targetDocument, ViewerSettings viewerSettings) throws java.io.IOException, ConformanceException
Copy viewer settings
The newly created viewer settings are associated with the target document, but not yet used as the document's viewer settings.- Parameters:
targetDocument- the output document with which the returned object is associatedviewerSettings- the viewer settings of a different document- Returns:
- a viewer settings object with the same content, but associated with the current document.
- Throws:
ConformanceException- The conformance level of the source document is not compatible with the conformance level of the target document.java.lang.IllegalArgumentException- if thetargetDocumentargument has already been closedjava.lang.IllegalArgumentException- if thetargetDocumentargument is read-onlyjava.lang.IllegalArgumentException- if theviewerSettingsargument is not associated with an input documentjava.lang.IllegalArgumentException- if the document associated with theviewerSettingsobject has already been closedjava.io.IOException- Error reading from the streamjava.lang.IllegalArgumentException- iftargetDocumentisnulljava.lang.IllegalArgumentException- ifviewerSettingsisnull
-
getPageDisplay
public PageDisplay getPageDisplay()
The positional arrangment for displaying pages when opening the document in a viewer. Ifnullthen the viewer acts according to it's default behavior.- Throws:
java.lang.IllegalStateException- if the document has already been closed
-
setPageDisplay
public void setPageDisplay(PageDisplay value)
The positional arrangment for displaying pages when opening the document in a viewer. Ifnullthen the viewer acts according to it's default behavior.- Throws:
java.lang.IllegalStateException- if the document has already been closedjava.lang.UnsupportedOperationException- if the document is read-only
-
getActivePane
public ViewerNavigationPane getActivePane()
The initially visible side pane when opening the document in a viewer. Ifnullthen the viewer acts according to it's default behavior.- Throws:
java.lang.IllegalStateException- if the document has already been closed
-
setActivePane
public void setActivePane(ViewerNavigationPane value)
The initially visible side pane when opening the document in a viewer. Ifnullthen the viewer acts according to it's default behavior.- Throws:
java.lang.IllegalStateException- if the document has already been closedjava.lang.UnsupportedOperationException- if the document is read-only
-
getFullScreen
public boolean getFullScreen()
Iftruethen opening the document will make the viewer try to enter full screen mode.- Throws:
java.lang.IllegalStateException- if the document has already been closed
-
setFullScreen
public void setFullScreen(boolean value)
Iftruethen opening the document will make the viewer try to enter full screen mode.- Throws:
java.lang.IllegalStateException- if the document has already been closedjava.lang.UnsupportedOperationException- if the document is read-only
-
getHideToolbar
public boolean getHideToolbar()
Iftruethen opening the document will instruct the viewer to hide it's toolbar.- Throws:
java.lang.IllegalStateException- if the document has already been closed
-
setHideToolbar
public void setHideToolbar(boolean value)
Iftruethen opening the document will instruct the viewer to hide it's toolbar.- Throws:
java.lang.IllegalStateException- if the document has already been closedjava.lang.UnsupportedOperationException- if the document is read-only
-
getHideMenubar
public boolean getHideMenubar()
Iftruethen opening the document will instruct the viewer to hide it's menu bar.- Throws:
java.lang.IllegalStateException- if the document has already been closed
-
setHideMenubar
public void setHideMenubar(boolean value)
Iftruethen opening the document will instruct the viewer to hide it's menu bar.- Throws:
java.lang.IllegalStateException- if the document has already been closedjava.lang.UnsupportedOperationException- if the document is read-only
-
getDisplayDocumentTitle
public boolean getDisplayDocumentTitle()
Iftruethen opening the document will instruct the viewer to display the document's title from the metadata instead of it's file name.- Throws:
java.lang.IllegalStateException- if the document has already been closed
-
setDisplayDocumentTitle
public void setDisplayDocumentTitle(boolean value)
Iftruethen opening the document will instruct the viewer to display the document's title from the metadata instead of it's file name.- Throws:
java.lang.IllegalStateException- if the document has already been closedjava.lang.UnsupportedOperationException- if the document is read-only
-
-