THotPDF.AddFacturXAssociatedFile Method

方法摘要: THotPDF.AddFacturXAssociatedFile Method

宣告

function AddFacturXAssociatedFile(const XMLBytes : TBytes; const ConformanceLevel : AnsiString; const FileName : AnsiString = 'factur-x.xml'; const Description : AnsiString = 'Factur-X invoice XML'; const Relationship : AnsiString = 'Alternative'; const Version : AnsiString = '1.0'; const CountryCode : AnsiString = ''): THPDFDictionaryObject;

單元

HPDFDoc

參數

名稱用途
XMLBytes原樣內嵌於 PDF/A-3 EmbeddedFile 串流的發票 XML 位元組;XML 準則或設定檔識別碼必須與 ConformanceLevel 相符
ConformanceLevel允許的發票設定檔或符合性層級,例如 EN 16931、EXTENDED、XRECHNUNG,或 ZUGFeRD 1.0 的 COMFORT
FileName內嵌 XML 檔名,寫入 /F、/UF、EmbeddedFiles 名稱樹與 XMP 的 DocumentFileName 值
Description選用的 Filespec /Desc 文字,供消費端工具顯示
Relationship關聯檔案關聯性,以 /AFRelationship 寫入,且須為所選發票設定檔允許
Version發票中繼資料版本,可為 1.0、2p0,或對應的 XRECHNUNG 版本(例如 3.0)
CountryCode設定檔驗證使用的地區政策代碼;可傳入空值、DE 或 FR

傳回值

回傳為 primary invoice XML 註冊的 indirect Filespec dictionary

使用注意事項

相關 API