setasign\SetaPDF2\Core\Document\Catalog

Names Class for handling Names in a PDF document

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

Class hierarchy

Summary

Constants

ALTERNATE_PRESENTATIONS

public const string Names::ALTERNATE_PRESENTATIONS = 'AlternatePresentations'

Name/Category key

AP

public const string Names::AP = 'AP'

Name/Category key

DESTS

public const string Names::DESTS = 'Dests'

Name/Category key

EMBEDDED_FILES

public const string Names::EMBEDDED_FILES = 'EmbeddedFiles'

Name/Category key

IDS

public const string Names::IDS = 'IDS'

Name/Category key

JAVA_SCRIPT

public const string Names::JAVA_SCRIPT = 'JavaScript'

Name/Category key

PAGES

public const string Names::PAGES = 'Pages'

Name/Category key

RENDITIONS

public const string Names::RENDITIONS = 'Renditions'

Name/Category key

TEMPLATES

public const string Names::TEMPLATES = 'Templates'

Name/Category key

URLS

public const string Names::URLS = 'URLS'

Name/Category key

XFA_RESOURCES

public const string Names::XFA_RESOURCES = 'XFAResources'

Name/Category key


Properties

$_catalog

The catalog instance

$_nameTrees

protected array Names::$_nameTrees = array()

$_namesDictionary

The Names dictionary


Static Methods

getAvailableCategoryKeys()

public static Names::getAvailableCategoryKeys (
void
): array

Returns all available category keys of possible name trees.


Methods

__construct()

The constructor.

Parameters
$catalog : \SetaPDF_Core_Document_Catalog
 

cleanUp()

public Names::cleanUp (
void
): void

Release objects to free memory and cycled references.

After calling this method the instance of this object is unusable!

getDocument()

Get the document instance.

getEmbeddedFiles()

Get the embedded files helper.

getNamesDictionary()

public Names::getNamesDictionary (
bool $create = false
): ?\SetaPDF_Core_Type_Dictionary

Returns the Names dictionary in the document's catalog.

Parameters
$create : bool
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception,\setasign\SetaPDF2\Core\Type\Exception

getTree()

public Names::getTree (
string $name,
bool $create = false
): ?\SetaPDF_Core_DataStructure_NameTree

Get a name tree by its name.

Parameters
$name : string
 
$create : bool
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception