THPDFFacturXInvoiceInfo Record
Opisuje fakturę Factur-X albo ZUGFeRD osadzoną w załadowanym dokumencie: nazwę pliku załącznika, wartości metadanych XMP, identyfikatory profilu, typ MIME oraz nazwy plików uzupełniających reprezentacji UBL i EDIFACT
Deklaracja
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;
Jednostka
HPDFDoc
Pola
| Pole | Przeznaczenie |
|---|---|
FileName | Nazwa faktycznie znalezionego załącznika osadzonej faktury: XMP-owe DocumentFileName, gdy da się go rozwiązać, w przeciwnym razie jedna z factur-x.xml, xrechnung.xml, zugferd-invoice.xml, ZUGFeRD-invoice.xml |
XMPDocumentFileName | Tekst fx:DocumentFileName odczytany z metadanych XMP dokumentu |
XMPNamespaceURI | URI przestrzeni nazw elementu DocumentFileName w metadanych XMP |
DocumentType | Wartość XMP DocumentType; dokumenty faktur niosą INVOICE |
Version | Wartość XMP Version profilu Factur-X |
ConformanceLevel | Wartość XMP ConformanceLevel profilu Factur-X |
GuidelineID | Identyfikator wytycznych (URN) odczytany z osadzonego XML-a CII ExchangedDocumentContext |
AFRelationship | Wpis /AFRelationship specyfikacji pliku faktury, na przykład Data albo Alternative |
AttachmentMimeType | Typ MIME osadzonego pliku faktury |
UBLFileName | Stała nazwa factur-xubl.xml, gdy osadzona jest uzupełniająca reprezentacja UBL; puste w przeciwnym razie |
EDIFACTFileName | Stała nazwa factur-xedifact.edi, gdy osadzona jest uzupełniająca reprezentacja EDIFACT; puste w przeciwnym razie |
Uwagi dotyczące użycia
- Wypełniany przez
THotPDF.DetectFacturXInvoice; puste pola znaczą, że odpowiadający element nie wystąpił, a wynikfalsezostawia częściowe metadane dla diagnozy - Czytaj
UBLFileNameiEDIFACTFileNamewyłącznie do raportowania: nazywają one reprezentacje uzupełniające, nigdy podstawowy XML faktury - Użyj rekordu ponownie z
THotPDF.ExtractFacturXXMLalbo podaj goTHotPDF.ValidateFacturXInvoice, które wypełnia własny raport i osadza ten rekord wInfo