SetaPDF_FormFiller_Field_FieldInterface Field interface
File: /SetaPDF v2/FormFiller/Field/FieldInterface.php
Implemented in
- SetaPDF_FormFiller_Field_AbstractField
- SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface
- SetaPDF_FormFiller_Field_ButtonGroup
Summary
Methods
flatten()
abstract public SetaPDF_FormFiller_Field_FieldInterface::flatten (
[ boolean $recreateAppearanceIfNeedAppearancesIsSet = false ]
): voidFlatten 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.
getDefaultValue()
abstract public SetaPDF_FormFiller_Field_FieldInterface::getDefaultValue (
[ string $encoding = 'UTF-8' ]
): mixedReturns the default value of the field.
This value is used if the form is reset
Parameters
- $encoding : string
getNoExport()
Get the info, if the field is marked as "no export".
This flag is not gettable or settable with Acrobat!
setDefaultValue()
abstract public SetaPDF_FormFiller_Field_FieldInterface::setDefaultValue (
mixed $value [, string $encoding = 'UTF-8' ]
): voidSet the default value of the field.
Parameters
- $value : mixed
- $encoding : string
setNoExport()
abstract public SetaPDF_FormFiller_Field_FieldInterface::setNoExport (
[ boolean $noExport = true ]
): voidSets 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()
abstract public SetaPDF_FormFiller_Field_FieldInterface::setReadOnly (
[ boolean $readOnly = true ]
): voidSets a field to read-only or not.
Parameters
- $readOnly : boolean
setRequired()
abstract public SetaPDF_FormFiller_Field_FieldInterface::setRequired (
[ boolean $required = true ]
): voidSets a field to be required or not.
Parameters
- $required : boolean