NAME

PDF::Make::Builder::Form::Field::Text - Text input form field

SYNOPSIS

$b->add_field(
    type          => 'text',
    name          => 'email',
    label         => 'Email Address',
    w             => 300,
    default_value => 'user@example.com',
);

# Multiline
$b->add_field(
    type       => 'text',
    name       => 'comments',
    label      => 'Comments',
    w          => 400,
    h          => 80,
    multiline  => 1,
);

# Password
$b->add_field(
    type       => 'text',
    name       => 'password',
    label      => 'Password',
    password   => 1,
);

PROPERTIES

Inherits all properties from PDF::Make::Builder::Form::Field, plus:

multiline (Bool, default 0) - Allow multiple lines of text
password (Bool, default 0) - Mask input characters
max_length (Int) - Maximum number of characters

SEE ALSO

PDF::Make::Builder::Form::Field, PDF::Make::Builder