Class PDDocumentOutline
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.common.PDDictionaryWrapper
-
- com.tom_roush.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode
-
- com.tom_roush.pdfbox.pdmodel.interactive.documentnavigation.outline.PDDocumentOutline
-
- All Implemented Interfaces:
COSObjectable
public final class PDDocumentOutline extends PDOutlineNode
This represents an outline in a pdf document.
-
-
Constructor Summary
Constructors Constructor Description PDDocumentOutline()Default Constructor.PDDocumentOutline(COSDictionary dic)Constructor for an existing document outline.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseNode()Close this node.booleanisNodeOpen()voidopenNode()This will set this node to be open when it is shown in the viewer.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.common.PDDictionaryWrapper
equals, getCOSObject, hashCode
-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode
addFirst, addLast, children, getFirstChild, getLastChild, getOpenCount, hasChildren
-
-
-
-
Constructor Detail
-
PDDocumentOutline
public PDDocumentOutline()
Default Constructor.
-
PDDocumentOutline
public PDDocumentOutline(COSDictionary dic)
Constructor for an existing document outline.- Parameters:
dic- The storage dictionary.
-
-
Method Detail
-
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
-
-