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
| Signature | Description |
|---|---|
Document() → *Document | Document returns the document this collection is bound to. |
Count() → int | Count returns the number of registered entries. |
Has(name: string) → bool | Has reports whether name is registered. |
Get(name: string) → Destination | Get returns the destination registered under name, or nil if absent. |
Add(name: string, dest: Destination) → error | Add registers dest under name. |
Remove(name: string) → bool | Remove deletes the entry; returns true if it existed. |
Names() → []string | Names returns a snapshot slice of all registered names in lex order. |
All() → map[string]Destination | All returns a snapshot map of name → destination. |
Clear() | Clear removes every entry. |