SetaPDF_Core_Document_Catalog_AcroForm Class representing a basic AcroForm
File: /SetaPDF v2/Core/Document/Catalog/AcroForm.php
Class hierarchy
Summary
Properties
Static Methods
resolveFieldName()
Resolves the qualified name of a form field.
Parameters
- $terminalFieldDictionary : SetaPDF_Core_Type_Dictionary
The terminal field of the form field
- $asArray : boolean
Return Values
In UTF-8 encoding
Exceptions
Throws SetaPDF_Core_Type_Exception
Methods
__construct()
The constructor.
Parameters
- $catalog : SetaPDF_Core_Document_Catalog
_readTerminalFieldsObjects()
Read all terminal fields objects.
Parameters
- $fields : array|null
- $objects : SetaPDF_Core_Type_IndirectObjectInterface[]
Exceptions
addDefaultEntriesAndValues()
Add default values and resources to the AcroForm dictionary.
This is needed to avoid undefined behavior in adobe reader. If for example base fonts are missing, the file is digital signed and include links, the signature panel will never be displayed.
Exceptions
addResource()
Adds a resource.
Parameters
- $type : string|SetaPDF_Core_Resource
- $object : null|SetaPDF_Core_Resource|SetaPDF_Core_Type_IndirectObjectInterface
Exceptions
Throws InvalidArgumentException
getCalculationOrderArray()
Get and creates the calculation order array.
Parameters
- $create : boolean
Exceptions
getDefaultResources()
Get the default resources of the AcroForm.
Parameters
- $create : bool
- $entryKey : null
Exceptions
getDictionary()
Get and creates the AcroForm dictionary.
Parameters
- $create : boolean
Exceptions
getFieldsArray()
Get and creates the fields array.
Parameters
- $create : boolean
Exceptions
getTerminalFieldsObjects()
Get the terminal fields objects of a document.
Exceptions
setNeedAppearances()
Set the NeedAppearances flag.
This flag indicates the viewer to rerender the form field appearances.
Parameters
- $needAppearances : boolean