PHP Class mikehaertl\pdftk\FdfFile

This class represents a temporary FDF (1.2) file that can be used to fill a PDF form with valid unicode characters.
Author: Michael Härtl ([email protected])
Inheritance: extends mikehaertl\tmp\File
Show file Open project: mikehaertl/php-pdftk Class Usage Examples

Public Methods

Method Description
__construct ( array $data, string | null $suffix = null, $prefix = null, string | null $directory = null, string | null $encoding = 'UTF-8' ) Constructor

Method Details

__construct() public method

Constructor
public __construct ( array $data, string | null $suffix = null, $prefix = null, string | null $directory = null, string | null $encoding = 'UTF-8' )
$data array the form data as name => value
$suffix string | null the optional suffix for the tmp file
$directory string | null directory where the file should be created. Autodetected if not provided.
$encoding string | null of the data. Default is 'UTF-8'.