org.icepdf.core.pobjects
Class Outlines
java.lang.Object
org.icepdf.core.pobjects.Dictionary
org.icepdf.core.pobjects.Outlines
public class Outlines
- extends Dictionary
This class represents a PDF document outline. A document outline is
an optional component of a PDF document and is accessible from the document's
Catalog. The outline consists of a tree-structured hierarchy of outline items
(sometimes called bookmarks) which can be used to display a documents
structure to the user.
The outlines class does not build a visible structure; it only represents the
non-visual structure of the outline. The OutlineItemTreeNode available in
the packageorg.icepdf.core.ri.common provides an example on converting
this hierarchy to a Swing JTree.
- Since:
- 1.0
- See Also:
org.icepdf.ri.common.OutlineItemTreeNode,
OutlineItem
|
Constructor Summary |
Outlines(Library l,
java.util.Hashtable h)
Creates a new instance of Outlines. |
| Methods inherited from class org.icepdf.core.pobjects.Dictionary |
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Outlines
public Outlines(Library l,
java.util.Hashtable h)
- Creates a new instance of Outlines.
- Parameters:
l - document library.h - Outlines dictionary entries.
getRootOutlineItem
public OutlineItem getRootOutlineItem()
- Gets the root OutlineItem. The root outline item can be traversed to build
a visible outline of the hierarchy.
- Returns:
- root outline item.
dispose
public void dispose()
- Dispose the Outlines.