setasign\SetaPDF2\FormFiller\Field
AdditionalActions Class representing a form fields additional-actions dictionary
File: /SetaPDF v2/FormFiller/Field/AdditionalActions.php
Old class name (alias):
\SetaPDF_FormFiller_Field_AdditionalActions
Class hierarchy
Summary
Properties
Methods
_getAction()
bool $instance = true
Get the action.
Parameters
- $name : string
- $instance : bool
Exceptions
_setAction()
string|\SetaPDF_Core_Document_Action_JavaScript|\SetaPDF_Core_Type_Dictionary|\SetaPDF_Core_Type_IndirectObjectInterface $javaScriptAction
Set the action.
Parameters
- $name : string
- $javaScriptAction : string|\SetaPDF_Core_Document_Action_JavaScript|\SetaPDF_Core_Type_Dictionary|\SetaPDF_Core_Type_IndirectObjectInterface
Exceptions
getCalculate()
Get the action that shall be performed when the mouse button is released inside the annotation’s active area.
Exceptions
getDictionary()
Get the additional actions dictionary.
Parameters
- $create : bool
Pass true to automatically create the dictionary
getFormat()
Get the JavaScript action that shall be performed before the field is formatted to display its value.
This action may modify the field’s value before formatting.
Exceptions
getKeystroke()
Get the JavaScript action that shall be performed when the user modifies a character in a text field or combo box or modifies the selection in a scrollable list box.
This action may check the added text for validity and reject or modify it.
Exceptions
getValidate()
Get the JavaScript action that shall be performed when the field’s value is changed.
This action may check the new value for validity.
Exceptions
setCalculate()
Set the action that shall be performed when the mouse button is released inside the annotation’s active area.
Parameters
- $action : \SetaPDF_Core_Document_Action_JavaScript|string
Exceptions
setFormat()
Set the JavaScript action that shall be performed before the field is formatted to display its value.
This action may modify the field’s value before formatting.
Parameters
- $action : \SetaPDF_Core_Document_Action_JavaScript|string
Exceptions
setKeystroke()
Set the JavaScript action that shall be performed when the user modifies a character in a text field or combo box or modifies the selection in a scrollable list box.
This action may check the added text for validity and reject or modify it.
Parameters
- $action : \SetaPDF_Core_Document_Action_JavaScript|string
Exceptions
setValidate()
Set the JavaScript action that shall be performed when the field’s value is changed.
This action may check the new value for validity.
Parameters
- $action : \SetaPDF_Core_Document_Action_JavaScript|string