setasign\SetaPDF2\Core\Document\ObjectCollector

StructTree Class for collecting objects from the StructTree structure

File: /SetaPDF v2/Core/Document/ObjectCollector/StructTree.php
Old class name (alias): \SetaPDF_Core_Document_ObjectCollector_StructTree

Class hierarchy

Summary

Properties


Methods

__construct()

Parameters
$document : \SetaPDF_Core_Document
 

_collectRoleMap()

public StructTree::_collectRoleMap (
\SetaPDF_Core_Document_Catalog_StructTreeRoot $structTreeRoot,
callable $addObjectCallback
): void
Parameters
$structTreeRoot : \SetaPDF_Core_Document_Catalog_StructTreeRoot
 
$addObjectCallback : callable
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

collect()

public StructTree::collect (
callable $addObjectCallback
): void

Collect all indirect objects/references for non-stream objects related to the StructTree structure of the document.

Parameters
$addObjectCallback : callable
 
Exceptions

Throws \setasign\SetaPDF2\Core\Document\ObjectNotFoundException

Throws \setasign\SetaPDF2\Core\Exception

Throws \setasign\SetaPDF2\Core\Parser\Pdf\InvalidTokenException

Throws \setasign\SetaPDF2\Core\Reader\Exception

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

Throws \setasign\SetaPDF2\Core\Type\IndirectReference\Exception

Throws \setasign\SetaPDF2\Exception

Throws \setasign\SetaPDF2\NotImplementedException