Module org.sejda.sambox
Class PDDocumentOutline
java.lang.Object
org.sejda.sambox.pdmodel.common.PDDictionaryWrapper
org.sejda.sambox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode
org.sejda.sambox.pdmodel.interactive.documentnavigation.outline.PDDocumentOutline
- All Implemented Interfaces:
COSObjectable
This represents an outline in a pdf document.
- Author:
- Ben Litchfield
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for an existing document outline. -
Method Summary
Modifier and TypeMethodDescriptionvoidClose this node.booleanvoidopenNode()This will set this node to be open when it is shown in the viewer.Methods inherited from class org.sejda.sambox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode
addAtPosition, addFirst, addLast, children, getFirstChild, getLastChild, getOpenCount, hasChildrenMethods inherited from class org.sejda.sambox.pdmodel.common.PDDictionaryWrapper
equals, getCOSObject, hashCode
-
Constructor Details
-
PDDocumentOutline
public PDDocumentOutline() -
PDDocumentOutline
Constructor for an existing document outline.- Parameters:
dic- The storage dictionary.
-
-
Method Details
-
isNodeOpen
public boolean isNodeOpen()- Overrides:
isNodeOpenin classPDOutlineNode- Returns:
- true if this node count is greater than zero, false otherwise.
-
openNode
public void openNode()Description copied from class:PDOutlineNodeThis will set this node to be open when it is shown in the viewer. By default, when a new node is created it will be closed. This will do nothing if the node is already open.- Overrides:
openNodein classPDOutlineNode
-
closeNode
public void closeNode()Description copied from class:PDOutlineNodeClose this node.- Overrides:
closeNodein classPDOutlineNode
-