TextFieldOptions
in package
FinalYes
Options for {@see \Phpdftk\Pdf\Writer\PdfDoc::addTextField()}.
Sensible defaults: single-line, not required, not read-only,
unlimited length. The defaultAppearance matches what most viewers
expect for a Helvetica 10pt black text field.
Table of Contents
Properties
- $defaultAppearance : string
- $defaultValue : string|null
- $maxLength : int|null
- $multiline : bool
- $password : bool
- $readOnly : bool
- $required : bool
Methods
- __construct() : mixed
Properties
$defaultAppearance read-only
public
string
$defaultAppearance
= '/Helv 10 Tf 0 0 0 rg'
$defaultValue read-only
public
string|null
$defaultValue
= null
$maxLength read-only
public
int|null
$maxLength
= null
$multiline read-only
public
bool
$multiline
= false
$password read-only
public
bool
$password
= false
$readOnly read-only
public
bool
$readOnly
= false
$required read-only
public
bool
$required
= false
Methods
__construct()
public
__construct([string|null $defaultValue = null ][, int|null $maxLength = null ][, bool $multiline = false ][, bool $password = false ][, bool $required = false ][, bool $readOnly = false ][, string $defaultAppearance = '/Helv 10 Tf 0 0 0 rg' ]) : mixed
Parameters
- $defaultValue : string|null = null
- $maxLength : int|null = null
- $multiline : bool = false
- $password : bool = false
- $required : bool = false
- $readOnly : bool = false
- $defaultAppearance : string = '/Helv 10 Tf 0 0 0 rg'