OutlineCollection

OutlineCollection

Overview

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

Root outline collection — the /Outlines dictionary in the document catalog (ISO 32000-1:2008, §12.3.3).

Properties

NameTypeAccessDescription
firstOutlineItemCollectionReadReturns the first top-level outline item, or null if the collection is empty.
lastOutlineItemCollectionReadReturns the last top-level outline item, or null if the collection is empty.
countintReadReturns the number of top-level bookmarks.
visibleCountintReadReturns the total number of visible items at all levels.
cOSDictionaryCOSDictionaryReadReturns the underlying COS dictionary.

Methods

SignatureDescription
OutlineCollection(outlinesDict: COSDictionary, document: Document, parser: PDFParser)Wraps an existing /Outlines dictionary.
OutlineCollection(document: Document, parser: PDFParser)Creates an empty outline collection (when document has no bookmarks).
add(item: OutlineItemCollection)Adds a top-level bookmark.
get(index: int)OutlineItemCollectionReturns the bookmark at the given 1-based index.
getFirst()OutlineItemCollectionReturns the first top-level outline item, or null if the collection is empty.
getLast()OutlineItemCollectionReturns the last top-level outline item, or null if the collection is empty.
getCount()intReturns the number of top-level bookmarks.
getVisibleCount()intReturns the total number of visible items at all levels.
delete(index: int)Removes a bookmark by 1-based index.
clear()Removes all bookmarks.
delete(title: String)Deletes the first outline item with the specified title.
contains(item: OutlineItemCollection)booleanChecks whether this collection contains the specified item.
iterator()Iterator<OutlineItemCollection>
getCOSDictionary()COSDictionaryReturns the underlying COS dictionary.

See Also