PDFium Delphi Component Docs

ExportFDF method

Component: TPdf  ·  Unit: PDFium
Serializes form field values from the loaded document into an FDF file or stream

Syntax

function ExportFDF(const FileName: string): Integer; overload;
function ExportFDF(Stream: TStream): Integer; overload;

Description

ExportFDF walks widget annotations across every page, rebuilds the hierarchical field tree from qualified names, and writes an FDF 1.2 document as defined by ISO 32000-1 section 12.7.11

Printable ASCII values use escaped PDF literal strings, while non-ASCII names and values use BOM-prefixed UTF-16BE hexadecimal text strings

When the loaded PDF has a file name, its base name is written to the FDF /F entry with PDF text-string escaping

Returns the number of bytes written

Remarks

Example

// Export the current form values to FDF
BytesWritten := Pdf1.ExportFDF('C:\Data\form.fdf');

See Also

ImportFDF, ExportXFDF, FPdfXfdf