OutlineItemCollection

OutlineItemCollection

Overview

OutlineItemCollection is a class in Aspose.Pdf FOSS for Java. Inherits from: Iterable<OutlineItemCollection>.

Represents a single bookmark (outline item) in the document outline tree (ISO 32000-1:2008, §12.3.3, Table 153).

Properties

NameTypeAccessDescription
titleStringReadReturns the bookmark title.
boldbooleanReadReturns whether the title is displayed bold.
italicbooleanReadReturns whether the title is displayed italic.
colorColorReadReturns the text color for this bookmark.
destinationExplicitDestinationReadReturns the destination for this bookmark.
levelintReadReturns the nesting depth of this outline item.
pageDisplayExplicitDestinationReadReturns the page display destination for this bookmark.
pageDisplay_ZoomdoubleReadReturns the zoom factor of the current XYZ destination, or 0 if not an XYZ destination.
firstOutlineItemCollectionReadReturns the first child outline item, or null if there are no children.
lastOutlineItemCollectionReadReturns the last child outline item, or null if there are no children.
nextOutlineItemCollectionReadReturns the next sibling outline item in the linked list, or null.
prevOutlineItemCollectionReadReturns the previous sibling outline item in the linked list, or null.
actionPdfActionReadReturns the action for this bookmark.
countintReadReturns the number of direct children.
visibleCountintReadReturns the total visible count (children of open items, recursively).
openbooleanReadReturns whether this item is open (children visible).
cOSDictionaryCOSDictionaryReadReturns the underlying COS dictionary.

Methods

SignatureDescription
OutlineItemCollection(outlines: OutlineCollection)Creates a new empty bookmark.
getTitle()StringReturns the bookmark title.
setTitle(title: String)Sets the bookmark title.
getBold()booleanReturns whether the title is displayed bold.
setBold(bold: boolean)Sets bold display.
getItalic()booleanReturns whether the title is displayed italic.
setItalic(italic: boolean)Sets italic display.
getColor()ColorReturns the text color for this bookmark.
setColor(color: Color)Sets the text color for this bookmark.
getDestination()ExplicitDestinationReturns the destination for this bookmark.
setDestination(action: GoToAction)Sets the destination from a GoToAction.
setDestination(dest: ExplicitDestination)Sets the destination (removes action if set).
setDestination(dest: IAppointment)Sets the destination from any {@link IAppointment} — accepts both
{@link ExplicitDestination} (serialized as a {@code /Dest} array) and
{@link NamedDestination} (serialized as a {@code /Dest} byte string).
getLevel()intReturns the nesting depth of this outline item.
setPageDisplay(dest: ExplicitDestination)Sets the page display destination for this bookmark.
getPageDisplay()ExplicitDestinationReturns the page display destination for this bookmark.
setPageDisplay_Zoom(zoom: double)Sets the zoom factor for an XYZ destination.
getPageDisplay_Zoom()doubleReturns the zoom factor of the current XYZ destination, or 0 if not an XYZ destination.
getFirst()OutlineItemCollectionReturns the first child outline item, or null if there are no children.
getLast()OutlineItemCollectionReturns the last child outline item, or null if there are no children.
getNext()OutlineItemCollectionReturns the next sibling outline item in the linked list, or null.
getPrev()OutlineItemCollectionReturns the previous sibling outline item in the linked list, or null.
getAction()PdfActionReturns the action for this bookmark.
setAction(action: PdfAction)Sets the action (removes destination if set).
add(child: OutlineItemCollection)Adds a child bookmark.
get(index: int)OutlineItemCollectionReturns the child at the given 1-based index.
getCount()intReturns the number of direct children.
getVisibleCount()intReturns the total visible count (children of open items, recursively).
isOpen()booleanReturns whether this item is open (children visible).
setOpen(open: boolean)Sets whether this item is open.
delete(index: int)Removes a child by 1-based index.
delete()Removes all child outline items from this bookmark.
delete(title: String)Deletes the first child item with the specified title (recursive).
contains(item: OutlineItemCollection)booleanChecks whether this item or its descendants contain the specified item.
iterator()Iterator<OutlineItemCollection>
getCOSDictionary()COSDictionaryReturns the underlying COS dictionary.

See Also