setasign\SetaPDF2\Core\Document\ObjectCollector

Annotations Class for collecting objects from annotations

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

Class hierarchy

Summary

Properties


Methods

__construct()

Parameters
$document : \SetaPDF_Core_Document
 

collect()

public Annotations::collect (
callable $addObjectCallback,
bool $withActionsOrDestinations = true
): void

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

Parameters
$addObjectCallback : callable
 
$withActionsOrDestinations : bool
 
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