Class PDDocumentOutline
java.lang.Object
org.apache.pdfbox.pdmodel.common.PDDictionaryWrapper
org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode
org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDDocumentOutline
- All Implemented Interfaces:
COSObjectable
This represents an outline in a pdf document.
- Author:
- Ben Litchfield
-
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor.Constructor 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 PDOutlineNode
addFirst, addLast, children, getFirstChild, getLastChild, getOpenCount, hasChildrenMethods inherited from class PDDictionaryWrapper
equals, getCOSObject, hashCode
-
Constructor Details
-
PDDocumentOutline
public PDDocumentOutline()Default Constructor. -
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
-