GetFacturXInvoiceInfo
Document properties
Description
Reads e-invoice fields recognized by DetectFacturXInvoice
Syntax
Delphi
Function TPDFlib.GetFacturXInvoiceInfo(Tag: Integer): WideString;
Parameters
| Tag | The field number to read: 1 for the actual XML file name, 2 for XMP DocumentFileName, 3 for DocumentType, 4 for Version, 5 for ConformanceLevel, 6 for the XML guideline ID, and 7 for /AFRelationship |
|---|
Return values
The requested text field, or an empty string when no e-invoice was detected or the field number is unknown
Example
// Read the detected invoice profile
begin
if PDF.DetectFacturXInvoice = 1 then
begin
FileName := PDF.GetFacturXInvoiceInfo(1);
Profile := PDF.GetFacturXInvoiceInfo(5);
end;
end;
See also
DetectFacturXInvoice, ValidateFacturXInvoice, ExtractFacturXXMLToString