property XFA: Boolean; // read-only
Read-only property that returns True when FormType is ftXfaFull or ftXfaForeground on the currently open document
To read the raw XFA XML packets embedded in the document, use GetXfaPacketCount and GetXfaPacketContent
Wraps the corresponding PDFium form-type check and exposes it as a TPdf instance member so consumers do not have to manage FPDF_DOCUMENT handles directly
False when Active is False or when the document uses standard AcroForm widgets or no formsXfaRuntimeAvailable and XfaStaticReadable to distinguish dynamic XFA runtime capability from static packet inspectionGetXfaPacketCount, GetXfaPacketName, and GetXfaPacketContent to inspect individual XFA packets
Pdf1.Active := True;
if Pdf1.XFA then
ShowMessage('XFA packets: ' + IntToStr(Pdf1.GetXfaPacketCount));