setasign\SetaPDF2\Core\Document\ObjectCollector

ObjectCollector Class for collecting objects

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

Class hierarchy

Implements

Summary

Constants

COLLECT_ACRO_FORM

public const int ObjectCollector::COLLECT_ACRO_FORM = 128

Flag to collect interactive form objects.

COLLECT_ACTIONS

public const int ObjectCollector::COLLECT_ACTIONS = 64

Flag to collect action objects in annotation or outline items.

COLLECT_ALL

public const int ObjectCollector::COLLECT_ALL = 255

Flag to collect all kind of objects.

COLLECT_ANNOTATIONS

public const int ObjectCollector::COLLECT_ANNOTATIONS = 16

Flag to collect objects related to page annotations.

COLLECT_DESTS

public const int ObjectCollector::COLLECT_DESTS = 32

Flag to collect destination objects in annotations or outline items.

COLLECT_FONTS

public const int ObjectCollector::COLLECT_FONTS = 8

Flag to collect objects related to font objects.

COLLECT_OUTLINES

public const int ObjectCollector::COLLECT_OUTLINES = 2

Flag to collect objects of the document outline.

COLLECT_PAGES

public const int ObjectCollector::COLLECT_PAGES = 4

Flag to collect objects related to the document page tree.

COLLECT_STRUCT_TREE

public const int ObjectCollector::COLLECT_STRUCT_TREE = 1

Flag to collect objects with its origin in the documens structure tree root.


Properties

$_addObjectCallback

$_types

protected int ObjectCollector::$_types = 255

Flag what object types should be collected by the collect() method.


Methods

__construct()

Parameters
$document : \SetaPDF_Core_Document
 

getDocument()

setTypes()

public ObjectCollector::setTypes (
int $types
): void

Set the object types to be collected.

Parameters
$types : int