setasign\SetaPDF2\Core\Document\Catalog
StructTreeRoot Class representing the access to the StructTreeRoot dictionary of a document
File: /SetaPDF v2/Core/Document/Catalog/StructTreeRoot.php
Old class name (alias):
\SetaPDF_Core_Document_Catalog_StructTreeRoot
Class hierarchy
Summary
Properties
Methods
__construct()
addChild()
Add a child element.
Parameters
- $object : \setasign\SetaPDF2\Core\Type\IndirectObjectInterface
- $beforeIndex : null
Exceptions
exists()
Checks whether the StructTreeRoot dictionary exists or not.
Exceptions
getAndIncrementParentTreeNextKey()
Get the current next key for the parent tree and increase it.
Exceptions
getChilds()
Get the immediate children of the structure tree root.
Exceptions
getClassMapDictionary()
Get the class-map dictionary.
Parameters
- $create : bool
If set to true the dictionary will be created if it is not already available.
Exceptions
getDictionary()
Get and creates the dictionary of the StructTreeRoot entry.
Parameters
- $create : bool
Exceptions
getIdTree()
Get and create the id tree instance.
Parameters
- $create : bool
Exceptions
getNamespacesArray()
Get the namespaces array.
Parameters
- $create : bool
Exceptions
getObject()
Gets and creates the indirect object of the StructTreeRoot entry.
Parameters
- $create : bool
Exceptions
getParentTree()
Gets and create the parent tree.
Parameters
- $create : bool
Exceptions
getParentTreeNextKey()
Get and sets the next key in the parent tree (if it not already exists).
Exceptions
getRoleMapDictionary()
Get the role-map dictionary.
Parameters
- $create : bool
If set to true the dictionary will be created if it is not already available.