THotPDF.ExtractFacturXXML Method
Extracts the primary Factur-X or ZUGFeRD invoice XML payload from a loaded document. The method uses the invoice metadata and embedded-file name tree to locate the XML bytes
Declaration
function ExtractFacturXXML(out AXMLBytes: TBytes): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AXMLBytes | Receives the extracted invoice XML bytes when the method returns True |
Return value
Returns True when the primary invoice XML bytes are found and copied
Usage notes
- The method first calls DetectFacturXInvoice to identify the primary invoice XML filename
- The output byte array is cleared when the loaded document does not contain a detectable hybrid invoice XML file
- This API extracts the XML payload only; schema and business-rule validation remain the caller's responsibility