THPDFFacturXInvoiceInfo Record
描述已載入文件中內嵌的 Factur-X 或 ZUGFeRD 發票:附件檔名、XMP 中繼資料值、設定檔識別碼、MIME 類型,以及補充的 UBL 與 EDIFACT 表示法檔名
宣告
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;
單元
HPDFDoc
欄位
| 欄位 | 用途 |
|---|---|
FileName | 實際找到的內嵌發票附件名稱:可解析時為 XMP DocumentFileName,否則為 factur-x.xml、xrechnung.xml、zugferd-invoice.xml、ZUGFeRD-invoice.xml 之一 |
XMPDocumentFileName | 從文件 XMP 中繼資料讀到的 fx:DocumentFileName 文字 |
XMPNamespaceURI | XMP 中繼資料中 DocumentFileName 元素的命名空間 URI |
DocumentType | XMP DocumentType 值;發票文件為 INVOICE |
Version | Factur-X 設定檔的 XMP Version 值 |
ConformanceLevel | Factur-X 設定檔的 XMP ConformanceLevel 值 |
GuidelineID | 從內嵌 CII XML ExchangedDocumentContext 讀到的指引識別碼(URN) |
AFRelationship | 發票檔案規格的 /AFRelationship 條目,例如 Data 或 Alternative |
AttachmentMimeType | 內嵌發票檔案的 MIME 類型 |
UBLFileName | 內嵌了補充 UBL 表示法時為固定名稱 factur-xubl.xml;否則為空 |
EDIFACTFileName | 內嵌了補充 EDIFACT 表示法時為固定名稱 factur-xedifact.edi;否則為空 |
使用說明
- 由
THotPDF.DetectFacturXInvoice填入;欄位為空代表對應元素不存在,而false結果仍會保留部分中繼資料供診斷 UBLFileName與EDIFACTFileName僅供報告用途:它們指的是補充表示法,絕不是主要發票 XML- 這份記錄可搭配
THotPDF.ExtractFacturXXML重複使用,或交給THotPDF.ValidateFacturXInvoice;後者會填自己的報告,並把這份記錄嵌進Info