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 modifying any PDF
Each FDF name is 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 reaching external XML entities
FDF RV text strings and XFDF value-richtext become RichText records, their ordered mixed content being validated through the native rich-text decoder
Malformed syntax, unsupported field-value structures, unavailable references or exhausted limits raise EHPDFHeadlessFormDataError, whilst cooperative cancellation raises EHPDFOperationCancelled