public class ViewerSettings extends NativeObject
| Modifier and Type | Method and Description |
|---|---|
static ViewerSettings |
copy(Document targetDocument,
ViewerSettings viewerSettings)
Copy viewer settings
|
static ViewerSettings |
createDynamicObject(long handle) |
ViewerNavigationPane |
getActivePane()
The initially visible side pane when opening the document in a viewer.
|
boolean |
getDisplayDocumentTitle()
If
true then opening the document will instruct the viewer to display the document's title from the metadata instead of it's file name. |
boolean |
getFullScreen()
If
true then opening the document will make the viewer try to enter full screen mode. |
boolean |
getHideMenubar()
If
true then opening the document will instruct the viewer to hide it's menu bar. |
boolean |
getHideToolbar()
If
true then opening the document will instruct the viewer to hide it's toolbar. |
PageDisplay |
getPageDisplay()
The positional arrangment for displaying pages when opening the document in a viewer.
|
void |
setActivePane(ViewerNavigationPane value)
The initially visible side pane when opening the document in a viewer.
|
void |
setDisplayDocumentTitle(boolean value)
If
true then opening the document will instruct the viewer to display the document's title from the metadata instead of it's file name. |
void |
setFullScreen(boolean value)
If
true then opening the document will make the viewer try to enter full screen mode. |
void |
setHideMenubar(boolean value)
If
true then opening the document will instruct the viewer to hide it's menu bar. |
void |
setHideToolbar(boolean value)
If
true then opening the document will instruct the viewer to hide it's toolbar. |
void |
setPageDisplay(PageDisplay value)
The positional arrangment for displaying pages when opening the document in a viewer.
|
equals, hashCodepublic static ViewerSettings createDynamicObject(long handle)
public static ViewerSettings copy(Document targetDocument, ViewerSettings viewerSettings) throws java.io.IOException, ConformanceException
targetDocument - the output document with which the returned object is associatedviewerSettings - the viewer settings of a different documentConformanceException - The conformance level of the source document is not compatible
with the conformance level of the target document.java.lang.IllegalArgumentException - if the targetDocument argument is nulljava.lang.IllegalArgumentException - if the targetDocument argument has already been closedjava.lang.IllegalArgumentException - if the targetDocument argument is read-onlyjava.lang.IllegalArgumentException - if the viewerSettings argument is not associated with an input documentjava.lang.IllegalArgumentException - if the viewerSettings argument is nulljava.lang.IllegalArgumentException - if the viewerSettings object has already been closedjava.io.IOException - Error reading from the streampublic PageDisplay getPageDisplay()
null then the viewer acts according to it's default behavior.java.lang.IllegalStateException - if the document has already been closedpublic void setPageDisplay(PageDisplay value)
null then the viewer acts according to it's default behavior.java.lang.IllegalStateException - if the document has already been closedjava.lang.UnsupportedOperationException - if the document is read-onlypublic ViewerNavigationPane getActivePane()
null then the viewer acts according to it's default behavior.java.lang.IllegalStateException - if the document has already been closedpublic void setActivePane(ViewerNavigationPane value)
null then the viewer acts according to it's default behavior.java.lang.IllegalStateException - if the document has already been closedjava.lang.UnsupportedOperationException - if the document is read-onlypublic boolean getFullScreen()
true then opening the document will make the viewer try to enter full screen mode.java.lang.IllegalStateException - if the document has already been closedpublic void setFullScreen(boolean value)
true then opening the document will make the viewer try to enter full screen mode.java.lang.IllegalStateException - if the document has already been closedjava.lang.UnsupportedOperationException - if the document is read-onlypublic boolean getHideToolbar()
true then opening the document will instruct the viewer to hide it's toolbar.java.lang.IllegalStateException - if the document has already been closedpublic void setHideToolbar(boolean value)
true then opening the document will instruct the viewer to hide it's toolbar.java.lang.IllegalStateException - if the document has already been closedjava.lang.UnsupportedOperationException - if the document is read-onlypublic boolean getHideMenubar()
true then opening the document will instruct the viewer to hide it's menu bar.java.lang.IllegalStateException - if the document has already been closedpublic void setHideMenubar(boolean value)
true then opening the document will instruct the viewer to hide it's menu bar.java.lang.IllegalStateException - if the document has already been closedjava.lang.UnsupportedOperationException - if the document is read-onlypublic boolean getDisplayDocumentTitle()
true then opening the document will instruct the viewer to display the document's title from the metadata instead of it's file name.java.lang.IllegalStateException - if the document has already been closedpublic void setDisplayDocumentTitle(boolean value)
true then opening the document will instruct the viewer to display the document's title from the metadata instead of it's file name.java.lang.IllegalStateException - if the document has already been closedjava.lang.UnsupportedOperationException - if the document is read-only