THPDFFacturXInvoiceInfo Record
Describes the Factur-X or ZUGFeRD invoice embedded in a loaded document: attachment file name, XMP metadata values, profile identifiers, MIME type and supplementary UBL and EDIFACT representation file names
Declaration
THPDFFacturXInvoiceInfo= record
FileName: AnsiString;
XMPDocumentFileName: AnsiString;
XMPNamespaceURI: AnsiString;
DocumentType: AnsiString;
Version: AnsiString;
ConformanceLevel: AnsiString;
GuidelineID: AnsiString;
AFRelationship: AnsiString;
AttachmentMimeType: AnsiString;
// Supplementary UBL representation file name ('factur-xubl.xml') when the
// document embeds a UBL view alongside the primary CII invoice per
// Factur-X 1.09 spec 6.4; empty when no UBL attachment is present. UBL is
// a supplementary representation, never the primary invoice XML
UBLFileName: AnsiString;
// Supplementary EDIFACT representation file name ('factur-xedifact.edi')
// when the document embeds an EDIFACT view alongside the primary CII
// invoice per Factur-X 1.09 spec 6.4; empty when no EDIFACT attachment is
// present. Like UBL it is a supplementary representation, never the
// primary invoice XML
EDIFACTFileName: AnsiString;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
FileName | Name of the embedded invoice attachment actually present: the XMP DocumentFileName when resolvable, otherwise one of factur-x.xml, xrechnung.xml, zugferd-invoice.xml, ZUGFeRD-invoice.xml |
XMPDocumentFileName | fx:DocumentFileName text read from the document XMP metadata |
XMPNamespaceURI | Namespace URI of the DocumentFileName element in the XMP metadata |
DocumentType | XMP DocumentType value; invoice documents carry INVOICE |
Version | XMP Version value of the Factur-X profile |
ConformanceLevel | XMP ConformanceLevel value of the Factur-X profile |
GuidelineID | Guideline identifier (URN) taken from the embedded CII XML ExchangedDocumentContext |
AFRelationship | /AFRelationship entry of the invoice file specification, such as Data or Alternative |
AttachmentMimeType | MIME type of the embedded invoice file |
UBLFileName | Fixed name factur-xubl.xml when a supplementary UBL representation is embedded; empty when not |
EDIFACTFileName | Fixed name factur-xedifact.edi when a supplementary EDIFACT representation is embedded; empty when not |
Usage notes
- Filled by
THotPDF.DetectFacturXInvoice; empty fields mean the corresponding element was absent, and afalseresult leaves partial metadata behind for diagnosis - Read
UBLFileNameandEDIFACTFileNamefor reporting only: they name supplementary representations, never the primary invoice XML itself - Reuse the record with
THotPDF.ExtractFacturXXMLor hand it toTHotPDF.ValidateFacturXInvoice, which fills its own report and embeds this record inInfo