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

FieldPurpose
FileNameName of the embedded invoice attachment actually found: the XMP DocumentFileName when resolvable, otherwise one of factur-x.xml, xrechnung.xml, zugferd-invoice.xml, ZUGFeRD-invoice.xml
XMPDocumentFileNamefx:DocumentFileName text read from the document XMP metadata
XMPNamespaceURINamespace URI of the DocumentFileName element in the XMP metadata
DocumentTypeXMP DocumentType value; invoice documents carry INVOICE
VersionXMP Version value of the Factur-X profile
ConformanceLevelXMP ConformanceLevel value of the Factur-X profile
GuidelineIDGuideline identifier (URN) read from the embedded CII XML ExchangedDocumentContext
AFRelationship/AFRelationship entry of the invoice file specification, such as Data or Alternative
AttachmentMimeTypeMIME type of the embedded invoice file
UBLFileNameFixed name factur-xubl.xml when a supplementary UBL representation is embedded; empty otherwise
EDIFACTFileNameFixed name factur-xedifact.edi when a supplementary EDIFACT representation is embedded; empty otherwise

Usage notes

Related APIs