NamedDestinations

NamedDestinations

Overview

NamedDestinations is a type in Aspose.PDF FOSS for Go.

NamedDestinations is a name-to-destination map per ISO 32000-1 §12.3.2.3.

This type provides 9 methods for working with NamedDestinations objects in Go programs. Available methods include: Add, All, Clear, Count, Document, Get, Has, Names, Remove. All public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

Methods

SignatureDescription
Document()*DocumentDocument returns the document this collection is bound to.
Count()intCount returns the number of registered entries.
Has(name: string)boolHas reports whether name is registered.
Get(name: string)DestinationGet returns the destination registered under name, or nil if absent.
Add(name: string, dest: Destination)errorAdd registers dest under name.
Remove(name: string)boolRemove deletes the entry; returns true if it existed.
Names()[]stringNames returns a snapshot slice of all registered names in lex order.
All()map[string]DestinationAll returns a snapshot map of name → destination.
Clear()Clear removes every entry.

See Also