ExtractFacturXXMLToString
Document properties
Description
Returns the raw Factur-X, ZUGFeRD, or XRechnung XML bytes detected in the current document
Syntax
Delphi
Function TPDFlib.ExtractFacturXXMLToString: AnsiString;
Return values
The XML bytes from the embedded file stream, or an empty string when no e-invoice XML was detected
Remarks
This function first runs the same recognition flow as DetectFacturXInvoice, then extracts the content by the recognized file name
Example
// Extract invoice XML from the loaded PDF
var
XML: AnsiString;
begin
XML := PDF.ExtractFacturXXMLToString;
if XML = '' then Exit;
end;
See also
DetectFacturXInvoice, ValidateFacturXInvoice, GetFacturXInvoiceInfo, GetEmbeddedFileContentToString