setasign\SetaPDF2\FormFiller\Field\FlattenTaggingHandler

AbstractFlattenTaggingHandler An abstract tagging handler for flattened form fields.

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

The class comes with several helper methods, that could be needed/used by real handler implementations.

Class hierarchy

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.