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
Name/Category key
AP
DESTS
EMBEDDED_FILES
Name/Category key
IDS
JAVA_SCRIPT
Name/Category key
PAGES
RENDITIONS
Name/Category key
TEMPLATES
URLS
XFA_RESOURCES
Name/Category key
Properties
$_embeddedFiles
protected Names\EmbeddedFiles Names::$_embeddedFiles
Static Methods
Methods
__construct()
getNamesDictionary()
public Names::getNamesDictionary (
bool $create = false
): ?\setasign\SetaPDF2\Core\Type\PdfDictionaryReturns 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
): ?\setasign\SetaPDF2\Core\DataStructure\Tree\NameTreebool $create = false
Get a name tree by its name.
Parameters
- $name : string
- $create : bool
Exceptions
getTrees()
Get all available name trees.
Return Values
Array of \setasign\SetaPDF2\Core\DataStructure\Tree\NameTree objects
Exceptions
Throws \setasign\SetaPDF2\Core\SecHandler\Exception
Throws \setasign\SetaPDF2\Core\Type\Exception