com.icesoft.pdf.pobjects
Class Outlines
java.lang.Object
com.icesoft.pdf.pobjects.Dictionary
com.icesoft.pdf.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 package com.icesoft.pdf.ri.common provides an example on converting
this hierarchy to a Swing JTree.
- Since:
- 1.0
- See Also:
OutlineItemTreeNode,
OutlineItem
Outlines
public Outlines(Library l,
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.