SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface Field appearance callback interface
File: /SetaPDF v2/FormFiller/Field/AppearanceValueCallbackInterface.php
Implemented in
Implements
Summary
Methods
- cleanUp()
- delete()
- flatten()
- getAppearanceValue()
- getDefaultValue()
- getFieldDictionary()
- getNoExport()
- getOriginalQualifiedName()
- getQualifiedName()
- getValue()
- getVisibleValue()
- isReadOnly()
- isRequired()
- recreateAppearance()
- setAppearanceTextColor()
- setAppearanceValueCallback()
- setDefaultValue()
- setNoExport()
- setReadOnly()
- setRequired()
- setValue()
Methods
flatten()
Flatten the form fields appearance to the pages content.
Parameters
- $recreateAppearanceIfNeedAppearancesIsSet : boolean
Defines whether the field appearance is re-created if the NeedAppearances flag is set.
getAppearanceValue()
Get the appearance value.
Parameters
- $encoding : string
getDefaultValue()
Returns the default value of the field.
This value is used if the form is reset
Parameters
- $encoding : string
getFieldDictionary()
Get the field dictionary.
getNoExport()
Get the info, if the field is marked as "no export".
This flag is not gettable or settable with Acrobat!
getVisibleValue()
Returns the field specific visible value.
This value is used for e.g. formatting while the real export value may be a different one (for e.g. combo boxes).
Parameters
- $encoding : string
setAppearanceTextColor()
Set an individual appearance text color.
Parameters
- $textColor : SetaPDF_Core_DataStructure_Color
setAppearanceValueCallback()
Set the appearance value callback (to e.g. format a number).
The callback will be called with 2 arguments:
- A reference to the field instance
- The requested encoding
It needs to return a value in the specified encoding (internal calls need UTF-16BE throughout).
Parameters
- $callback : callback
setDefaultValue()
Set the default value of the field.
Parameters
- $value : mixed
- $encoding : string
setNoExport()
Sets the "no export" flag.
This flag is not gettable or settable with Acrobat!
If you remove this flag, the element could be still not exported due to a definition in a FormSubmit actions Fields array.
Parameters
- $noExport : boolean
setReadOnly()
Sets a field to read-only or not.
Parameters
- $readOnly : boolean
setRequired()
Sets a field to be required or not.
Parameters
- $required : boolean