NamedDestinations
Vue de l’ensemble
‘NamedDestinations’ est une classe dans Aspose.PDF FOSS pour Java.
Fournit l’accès aux destinations nommées dans un document PDF (ISO 32000-1:2008, §12.3.2.3).
Cette classe fournit 9 méthodes pour travailler avec des objets de NamedDestinations dans les programmes Java. Les méthodologies disponibles comprennent: NamedDestitions, add , ‘get ; 'getCount', ' getNames; ‘GetNameArray’ ; ‘remove : 'set et ‘size’. Tous les membres publics sont accessibles à n’importe quelle application Java après l’installation du package Java Aspose.PDF FOSS. Propriétés : count .
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
names | List<String> | Read | Returns all named destination names from both sources, deduplicated and |
| in insertion order ({@code /Names → /Dests} entries first, then any | |||
| extra keys from the legacy {@code /Dests} dictionary). | |||
count | int | Read | Returns the total number of named destinations. |
namesArray | String[] | Read | Returns all named destination names as an array. |
méthodes
| Signature | Description |
|---|---|
NamedDestinations(catalog: PdfDictionary, doc: Document, parser: PDFParser) | Creates a NamedDestinations accessor. |
get(name: String) → ExplicitDestination | Resolves a named destination to an explicit destination. |
getNames() → List<String> | Returns all named destination names from both sources, deduplicated and |
| in insertion order ({@code /Names → /Dests} entries first, then any | |
| extra keys from the legacy {@code /Dests} dictionary). | |
getCount() → int | Returns the total number of named destinations. |
size() → int | Alias for {@link #getCount()} matching the C# Aspose {@code .Count} property. |
getNamesArray() → String[] | Returns all named destination names as an array. |
add(name: String, destination: ExplicitDestination) | Adds (or replaces) a named destination via the catalog’s |
| {@code /Names→/Dests} name tree (PDF 1.2+). | |
set(name: String, destination: ExplicitDestination) | Sets a named destination — semantically identical to |
| {@link #add(String, ExplicitDestination)}; the name tree’s | |
| {@code put} replaces any existing value. | |
remove(name: String) → boolean | Removes a named destination if it exists. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise