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

$_catalog

The catalog instance


Methods

__construct()

The constructor.

Parameters
$catalog : \SetaPDF_Core_Document_Catalog
 

addChild()

public StructTreeRoot::addChild (
\SetaPDF_Core_Type_IndirectObjectInterface $object,
null $beforeIndex = null
): void

Add a child element.

Parameters
$object : \SetaPDF_Core_Type_IndirectObjectInterface
 
$beforeIndex : null
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

cleanUp()

public StructTreeRoot::cleanUp (
void
): void

Release memory and cycled references.

exists()

public StructTreeRoot::exists (
void
): bool

Checks whether the StructTreeRoot dictionary exists or not.

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getAndIncrementParentTreeNextKey()

Get the current next key for the parent tree and increase it.

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getChilds()

public StructTreeRoot::getChilds (
void
): array

Get the immediate children of the structure tree root.

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getDictionary()

Get and creates the dictionary of the StructTreeRoot entry.

Parameters
$create : bool
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getDocument()

Get the document instance.

getIdTree()

Get and create the id tree instance.

Parameters
$create : bool
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getObject()

Gets and creates the indirect object of the StructTreeRoot entry.

Parameters
$create : bool
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getParentTree()

Gets and create the parent tree.

Parameters
$create : bool
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getParentTreeNextKey()

public StructTreeRoot::getParentTreeNextKey (
void
): int

Get and sets the next key in the parent tree (if it not already exists).

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception