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
| Name | Type | Access | Description |
|---|---|---|---|
first | OutlineItemCollection | Read | Returns the first top-level outline item, or null if the collection is empty. |
last | OutlineItemCollection | Read | Returns the last top-level outline item, or null if the collection is empty. |
count | int | Read | Returns the number of top-level bookmarks. |
visibleCount | int | Read | Returns the total number of visible items at all levels. |
pdfDictionary | PdfDictionary | Read | Returns the underlying PDF dictionary. |
méthodes
| Signature | Description |
|---|---|
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) → OutlineItemCollection | Returns the bookmark at the given 1-based index. |
getFirst() → OutlineItemCollection | Returns the first top-level outline item, or null if the collection is empty. |
getLast() → OutlineItemCollection | Returns the last top-level outline item, or null if the collection is empty. |
getCount() → int | Returns the number of top-level bookmarks. |
getVisibleCount() → int | Returns 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) → boolean | Checks whether this collection contains the specified item. |
iterator() → Iterator<OutlineItemCollection> | |
getPdfDictionary() → PdfDictionary | Returns the underlying PDF dictionary. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise