phpdftk API Documentation

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'

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'

        
On this page

Search results