setasign\SetaPDF2\FormFiller\Field\FlattenTaggingHandler

TagInPagesContentStreamHandler The default tagging handler for form fields.

File: /SetaPDF v2/FormFiller/Field/FlattenTaggingHandler/TagInPagesContentStreamHandler.php

This handler tags the flattened fields (the drawing of the related form XObject) in the pages content stream.

Class hierarchy

Implements

Summary

Properties

$_callback

$_tagName

protected string TagInPagesContentStreamHandler::$_tagName = 'Form'

The tag-name that is used to mark the content.


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.