phpdftk API Documentation

FdfWriter
in package

FinalYes

FDF (Forms Data Format) file writer — ISO 32000-2 §12.7.8.

Generates a standalone .fdf file containing field name/value pairs that can be used to fill a PDF form.

Table of Contents

Methods

generate()  : string
Generate FDF file content from a field name → value map.

Methods

generate()

Generate FDF file content from a field name → value map.

public static generate(array<string, string> $fields[, string|null $pdfPath = null ]) : string
Parameters
$fields : array<string, string>

Field name => value

$pdfPath : string|null = null

Optional /F entry pointing to the PDF file

Return values
string

        
On this page

Search results