XFDF 3.0 Document Exchange

XFDF 3.0 of ISO 19444-1:2016 combines the f href, ids, fields and annots under one xfdf root, replacing the older fields-only and annotations-only exchange pairs

THotPDF export members

THotPDF.ExportLoadedDocumentToXFDFBytes(Bytes, SourcePDFHref, OriginalIDHex, ModifiedIDHex) writes the complete package in memory and returns the combined field and annotation entry count

THotPDF.ExportLoadedDocumentToXFDF(FileName, ...) writes the same package directly to disk

THotPDF import members

THotPDF.ImportLoadedDocumentFromXFDFBytes(Bytes, Metadata) parses the package, applies fields and annotations, and fills a THPDFXFDFDocumentMetadata record with the href, both IDs and both counts

THotPDF.ImportLoadedDocumentFromXFDF(...), with and without the metadata out-parameter, applies a package from a file, returning zero for a missing file

THotPDF validation members

THotPDF.ValidateXFDF30(...), in bytes-to-issues, bytes-to-findings and string-to-issues overloads, and THotPDF.ValidateXFDF30File(...), run the bounded ISO 19444-1 clause validation — namespace and xml:space rules, 32-hex ids, duplicate fields, rich-text and annotation geometry checks — through the cross-profile compliance-findings schema

THotPDF.ImportLoadedFormFromXFDF and the annotation XFDF exchange document the older split surfaces