PHP Класс mikehaertl\pdftk\XfdfFile

This class represents a temporary XFDF file that can be used to fill a PDF form with valid unicode characters.
Автор: Tomas Holy ([email protected])
Автор: Michael Härtl ([email protected])
Наследование: extends mikehaertl\tmp\File
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( array $data, string | null $suffix = null, $prefix = null, string | null $directory = null, string | null $encoding = 'UTF-8' ) Constructor

Защищенные методы

Метод Описание
writeFields ( integer $fp, mixed[] $fields ) Write the fields to the given filepointer

Описание методов

__construct() публичный метод

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'.

writeFields() защищенный метод

Write the fields to the given filepointer
protected writeFields ( integer $fp, mixed[] $fields )
$fp integer
$fields mixed[] an array of field values. A value can also be another array in which case a nested field is written.