Click or drag to resize

PdfOutline Class

A PDF document may contain a document outline that the conforming reader may display on the screen, allowing the user to navigate interactively from one part of the document to another. The outline consists of a tree-structured hierarchy of outline items (sometimes called bookmarks), which serve as a visual table of contents to display the document’s structure to the user.

PdfOutline represents a single outline item that is a node in the doubly linked list of outline items represented by PdfOutlineCollection.

Inheritance Hierarchy

Namespace:  GemBox.Pdf
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version: 10.0.35.1002
Syntax
public sealed class PdfOutline : PdfObject

The PdfOutline type exposes the following members.

Properties
  NameDescription
Public propertyClosed
Gets or sets a value indicating whether this PdfOutline is closed.
Public propertyDestination
(Optional; shall not be present if an A entry is present) The explicit destination that shall be displayed when this item is activated (see 12.3.2.2, "Explicit Destinations").
Public propertyDestinationName
(Optional; shall not be present if an A entry is present) The named destination that shall be displayed when this item is activated (see 12.3.2.3, "Named Destinations").
Public propertyNext
(Required for all but the last item at each level; shall be an indirect reference) The next item at this outline level.
Public propertyOutlines
Gets the PdfOutlines contained directly under this PdfOutline.
Public propertyParent
Gets the parent PdfOutline of this PdfOutline in the outline hierarchy.
Public propertyParentCollection
Gets the PdfOutlineCollection that the PdfOutline belongs to.
Public propertyPrevious
(Required for all but the first item at each level; shall be an indirect reference) The previous item at this outline level.
Public propertyTitle
(Required) The text that shall be displayed on the screen for this item.
Top
Methods
  NameDescription
Public methodSetDestination

Sets the explicit destination that shall be displayed when this item is activated (see 12.3.2.2, "Explicit Destinations").

parameters represent the following values depending on the viewType parameter:

FitRectangle
Left, Bottom, Right and Top.
LeftTopZoom
Left, Top and Zoom.
FitPageVertical and FitContentVertical
Left.
FitPageHorizontal and FitContentHorizontal
Top.
FitPage and FitContent
None.
Public methodToString
Returns a String that represents this PdfOutline instance.
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodGetDictionary
Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions.)
Top
See Also