HPDFDecodeHeadlessFormData
function HPDFDecodeHeadlessFormData(const Bytes: SysUtils.TBytes;
Format: THPDFHeadlessFormDataFormat;
const Options: THPDFHeadlessFormDataOptions): THPDFHeadlessFormDataFields;
Decodes actual FDF or XFDF bytes into independently owned Unicode terminal-field records without loading or changing a PDF
FDF names are decoded exactly once, dictionary keys and fully qualified field names must be semantically unique, and indirect references and field hierarchies are bounded
XFDF requires the standard root namespace and a fields container; scalar values, nested field containers and value-richtext XHTML bodies are decoded without executing actions or accessing external XML entities
FDF RV text strings and XFDF value-richtext become RichText records, with ordered mixed content validated through the native rich-text decoder
Malformed syntax, unsupported field-value structure, unavailable references or exhausted limits raise EHPDFHeadlessFormDataError; cooperative cancellation raises EHPDFOperationCancelled