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

參數

名稱用途
XMLBytesInvoice XML bytes embedded verbatim in the PDF/A-3 EmbeddedFile stream; the XML guideline or profile identifier must match ConformanceLevel
ConformanceLevel允許的發票設定檔或符合性層級,例如 EN 16931、EXTENDED、XRECHNUNG,或 ZUGFeRD 1.0 的 COMFORT
FileNameEmbedded XML filename written to /F, /UF, the EmbeddedFiles name tree, and the XMP DocumentFileName value
說明Optional Filespec /Desc text shown to consuming tools
RelationshipAssociated-file relationship written as /AFRelationship and allowed by the selected invoice profile
Version發票中繼資料版本,可為 1.0、2p0,或對應的 XRECHNUNG 版本(例如 3.0)
CountryCode設定檔驗證使用的地區政策代碼;可傳入空值、DE 或 FR

傳回值

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

使用注意事項

相關 API