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()

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.

_markContentItem()

Parameters
$xObject: \setasign\SetaPDF2\Core\XObject\Form
 
$mcid: int
 

end()

public TagInFormXObjectHandler::end (
void
): void

This method is called after the form XObject of the flattened form is written to the pages content stream.

start()

This method is called before the form XObject of the flattened form is written to the pages content stream.

Parameters
$field: \setasign\SetaPDF2\FormFiller\Field\AbstractField
 
$xObject: \setasign\SetaPDF2\Core\XObject\Form