setasign\SetaPDF2\Core\Document\Catalog

Dests Class for handling the Dests dictionary in the Catalog

File: /SetaPDF v2/Core/Document/Catalog/Dests.php
Old class name (alias): \SetaPDF_Core_Document_Catalog_Dests

Class hierarchy

Implements

Summary

Properties

$_catalog

The catalog instance


Methods

__construct()

The constructor.

Parameters
$catalog : \SetaPDF_Core_Document_Catalog
 

add()

Add or overwrite a named destination.

Parameters
$name : string|\SetaPDF_Core_Type_Name
 
$destination : \SetaPDF_Core_Document_Destination
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

cleanUp()

public Dests::cleanUp (
void
): void

Release memory and cycled references.

count()

public Dests::count (
void
): int

Count all available named destinations.

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

get()

public Dests::get (
string $name
): false|\SetaPDF_Core_Document_Destination

Get a destination object by its name.

Parameters
$name : string
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getDictionary()

public Dests::getDictionary (
bool $create = false
): ?\SetaPDF_Core_Type_Dictionary

Get and creates the dictionary.

Parameters
$create : bool
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getDocument()

Get the document instance.

getIterator()

public Dests::getIterator (
void
): \ArrayIterator

Implementation of the IteratorAggregate interface.

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

offsetExists()

public Dests::offsetExists (
string $offset
): bool

Checks if a named destination exists

Parameters
$offset : string
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

offsetGet()

public Dests::offsetGet (
string $offset
): false|\SetaPDF_Core_Document_Destination

Get a destination by its name.

Parameters
$offset : string
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

offsetUnset()

public Dests::offsetUnset (
string $offset
): void

Removes a named destination.

Parameters
$offset : string
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

remove()

public Dests::remove (
string $name
): bool

Removes a named destination.

Parameters
$name : string
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception