setasign\SetaPDF2\FormFiller\Field\FlattenTaggingHandler
TagInFormXObjectHandler EXPERIMENTAL CLASS that tags flattened form fields in their XObjects content streams!
File: /SetaPDF v2/FormFiller/Field/FlattenTaggingHandler/TagInFormXObjectHandler.php
Class hierarchy
Implements
Summary
Properties
$_callback
Static Methods
ensureAttributeDictionaryByOwner()
Helper method that ensures a dictionary by an owner name.
Parameters
- $structElemDict: \setasign\SetaPDF2\Core\Type\PdfDictionary
- $owner: string
Methods
__construct()
\setasign\SetaPDF2\FormFiller\Field\AbstractField $field, \setasign\SetaPDF2\Core\Type\IndirectObjectInterface $parentObject
): bool $callback = null
Parameters
- $callback: ?callable(
\setasign\SetaPDF2\FormFiller\Field\AbstractField $field, \setasign\SetaPDF2\Core\Type\IndirectObjectInterface $parentObject
): bool A callback that allows you to access/modify the parent structure element during the flattening process. If it returns true, the internal
_updateAttributes()method is executed. If false, it is not executed.
_ensureStructureInformation()
?int &$structParent,
?\setasign\SetaPDF2\Core\Type\PdfDictionary &$structElem,
?\setasign\SetaPDF2\Core\Document\Catalog\StructTreeRoot &$structTreeRoot,
?\setasign\SetaPDF2\Core\DataStructure\Tree\NumberTree &$parentTree,
?\setasign\SetaPDF2\Core\Type\PdfIndirectObject &$parentObject
Helper method, that initiates variables for working with the structure element related to a form field.
Parameters
- $field: \setasign\SetaPDF2\FormFiller\Field\AbstractField
- $structParent: ?int
- $structElem: ?\setasign\SetaPDF2\Core\Type\PdfDictionary
- $structTreeRoot: ?\setasign\SetaPDF2\Core\Document\Catalog\StructTreeRoot
- $parentTree: ?\setasign\SetaPDF2\Core\DataStructure\Tree\NumberTree
- $parentObject: ?\setasign\SetaPDF2\Core\Type\PdfIndirectObject
Exceptions
_markContentItem()
Parameters
- $xObject: \setasign\SetaPDF2\Core\XObject\Form
- $mcid: int
_updateAttributes()
\setasign\SetaPDF2\Core\Type\IndirectObjectInterface $parentObject
Updates attributes by the individual form field instances.
Parameters
- $field: \setasign\SetaPDF2\FormFiller\Field\AbstractField
- $parentObject: \setasign\SetaPDF2\Core\Type\IndirectObjectInterface
Exceptions
Throws \setasign\SetaPDF2\Core\Type\Exception
See
end()
This method is called after the form XObject of the flattened form is written to the pages content stream.
start()
\setasign\SetaPDF2\Core\XObject\Form $xObject
This method is called before the form XObject of the flattened form is written to the pages content stream.
