SetaPDF_Core_Document_Catalog_Dests Class for handling the Dests dictionary in the Catalog

File: /SetaPDF v2/Core/Document/Catalog/Dests.php

Class hierarchy

Implements

Summary

Properties


Methods

__construct()

add()

Add or overwrite a named destination.

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

Throws SetaPDF_Core_SecHandler_Exception

Throws SetaPDF_Core_Type_Exception

cleanUp()

Release memory and cycled references.

count()

Count all available named destinations.

Exceptions

Throws SetaPDF_Core_SecHandler_Exception

Throws SetaPDF_Core_Type_Exception

get()

Get a destination object by its name.

Parameters
$name : string
 
Exceptions

Throws SetaPDF_Core_SecHandler_Exception

Throws SetaPDF_Core_Type_Exception

getDictionary()

Get and creates the dictionary.

Parameters
$create : boolean
 
Exceptions

Throws SetaPDF_Core_SecHandler_Exception

Throws SetaPDF_Core_Type_Exception

getDocument()

Get the document instance.

getIterator()

Implementation of the IteratorAggregate interface.

Exceptions

Throws SetaPDF_Core_SecHandler_Exception

Throws SetaPDF_Core_Type_Exception

offsetExists()

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

Checks if a named destination exists

Parameters
$offset : string
 
Exceptions

Throws SetaPDF_Core_SecHandler_Exception

Throws SetaPDF_Core_Type_Exception

offsetGet()

Get a destination by its name.

Parameters
$offset : string
 
Exceptions

Throws SetaPDF_Core_SecHandler_Exception

Throws SetaPDF_Core_Type_Exception

offsetUnset()

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

Removes a named destination.

Parameters
$offset : string
 
Exceptions

Throws SetaPDF_Core_SecHandler_Exception

Throws SetaPDF_Core_Type_Exception

remove()

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

Removes a named destination.

Parameters
$name : string
 
Exceptions

Throws SetaPDF_Core_SecHandler_Exception

Throws SetaPDF_Core_Type_Exception