OutlineCollection

OutlineCollection

Vue de l’ensemble

‘OutlineCollection’ est une classe dans Aspose.PDF FOSS pour Java.Déduit de: Iterable<OtlineItemColection>.

Collecte de la source racine — le dictionnaire /outlines dans le catalogue des documents (ISO 32000-1:2008, §12.3.3).

Cette classe fournit 14 méthodes pour travailler avec des objets OutlineCollection dans les programmes Java. Les méthodologies disponibles comprennent: ‘Outline Collection’, ‘add’ , ‘clear’, contains', ‘delete, ‘get , ‘getCount ; ’etFirst; ' getLast : ‘pdfDictionary et 'gettVisibleCounta. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : count ou ‘first’, ’last’, ‘pdfDictionaire`

Propriétés

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.
pdfDictionaryPdfDictionaryReadReturns the underlying PDF dictionary.

méthodes

SignatureDescription
OutlineCollection(outlinesDict: PdfDictionary, 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>
getPdfDictionary()PdfDictionaryReturns the underlying PDF dictionary.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français