THPDFHeadlessDocument.ExportFormData
Rich text fields include their actual RV XHTML body in FDF RV or XFDF value-richtext alongside the scalar fallback value
function ExportFormData(Format: THPDFHeadlessFormDataFormat;
const Options: THPDFHeadlessFormDataOptions): SysUtils.TBytes;
Exports the currently loaded and prepared AcroForm values as actual FDF or XFDF bytes without changing the source graph or writing a file
Fully qualified Unicode names, ordinary scalar text, checkbox and radio export states, and complete choice arrays are preserved; signatures and pushbuttons carry names without values
Read-only fields are included with their current values, allowing an idempotent round trip; rich values require the bounded native XHTML profile, and annotation data is not exported
AES text-extraction permission is required; caller and document cancellation tokens must agree when non-nil
MaxBytes, MaxFields and MaxDepth are capped by the document object-byte, field-count and depth limits; remaining codec limits apply to the exported model and actual emitted bytes
Malformed models and exhausted form-data budgets raise EHPDFHeadlessFormDataError; document state and permission failures raise EHPDFHeadlessDocumentError, and cancellation raises EHPDFOperationCancelled