NamedDestinations

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

NameTypeAccessDescription
namesList<String>ReadReturns 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).
countintReadReturns the total number of named destinations.
namesArrayString[]ReadReturns all named destination names as an array.

méthodes

SignatureDescription
NamedDestinations(catalog: PdfDictionary, doc: Document, parser: PDFParser)Creates a NamedDestinations accessor.
get(name: String)ExplicitDestinationResolves 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()intReturns the total number of named destinations.
size()intAlias 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)booleanRemoves a named destination if it exists.

Voir aussi

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