THotPDF.ExtractFacturXXML Method
Method summary: THotPDF.ExtractFacturXXML Method
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
Related APIs
- THotPDF.ValidateFacturXInvoice Method
- THotPDF.DetectFacturXInvoice Method
- THotPDF.ExtractEmbeddedFileBytes Method
- THotPDF.AddFacturXAssociatedFile Method