SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface Field appearance callback interface

File: /SetaPDF v2/FormFiller/Field/AppearanceValueCallbackInterface.php

Implemented in

Implements

Summary

Methods

cleanUp()

abstract public SetaPDF_FormFiller_Field_FieldInterface::cleanUp (
void
): void

Release cycled references and release memory.

delete()

abstract public SetaPDF_FormFiller_Field_FieldInterface::delete (
void
): void

Delete the form field.

flatten()

abstract public SetaPDF_FormFiller_Field_FieldInterface::flatten (
void
): void

Flatten the form fields appearance to the pages content.

getAppearanceValue()

abstract public SetaPDF_FormFiller_Field_AppearanceValueCallbackInterface::getAppearanceValue (
[ string $encoding = 'UTF-8' ]
): string

Get the appearance value.

Parameters
$encoding : string
 

getDefaultValue()

abstract public SetaPDF_FormFiller_Field_FieldInterface::getDefaultValue (
[ string $encoding = 'UTF-8' ]
): mixed

Returns the default value of the field.

This value is used if the form is reset

Parameters
$encoding : string
 

getFieldDictionary()

getNoExport()

abstract public SetaPDF_FormFiller_Field_FieldInterface::getNoExport (
void
): boolean

Get the info, if the field is marked as "no export".

This flag is not gettable or settable with Acrobat!

getOriginalQualifiedName()

Returns the original qualified name of the field (without suffix #n).

getQualifiedName()

Returns the qualified name of the field.

getValue()

abstract public SetaPDF_FormFiller_Field_FieldInterface::getValue (
void
): mixed

Returns the field specific value.

isReadOnly()

abstract public SetaPDF_FormFiller_Field_FieldInterface::isReadOnly (
void
): boolean

Checks if a field is marked as read-only.

isRequired()

abstract public SetaPDF_FormFiller_Field_FieldInterface::isRequired (
void
): boolean

Checks if a field is marked as required.

recreateAppearance()

Recreate or creates the appearance of the form field if needed.

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: 1. A reference to the field instance 2. The requested encoding

It needs to return a value in the specified encoding (internal calls need UTF-16BE throughout).

Parameters
$callback : callback
 

setDefaultValue()

abstract public SetaPDF_FormFiller_Field_FieldInterface::setDefaultValue (
mixed $value [, string $encoding = 'UTF-8' ]
): void

Set the default value of the field.

Parameters
$value : mixed
 
$encoding : string
 

setNoExport()

abstract public SetaPDF_FormFiller_Field_FieldInterface::setNoExport (
[ boolean $noExport = true ]
): void

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()

abstract public SetaPDF_FormFiller_Field_FieldInterface::setReadOnly (
[ boolean $readOnly = true ]
): void

Sets a field to read-only or not.

Parameters
$readOnly : boolean
 

setRequired()

abstract public SetaPDF_FormFiller_Field_FieldInterface::setRequired (
[ boolean $required = true ]
): void

Sets a field to be required or not.

Parameters
$required : boolean
 

setValue()

abstract public SetaPDF_FormFiller_Field_FieldInterface::setValue (
mixed $value
): void

Sets the fields value.

Parameters
$value : mixed