THotPDF.ValidateFacturXInvoice Method
方法摘要: THotPDF.ValidateFacturXInvoice Method
宣告
function ValidateFacturXInvoice(out AReport: THPDFFacturXValidationReport): Boolean;
單元
HPDFDoc
參數
| 名稱 | 用途 |
|---|---|
AReport | 接收帶有偵測到的中繼資料與問題旗標的驗證報告THPDFFacturXValidationReport,帶有偵測到的中繼資料,以及由 THPDFFacturXValidationIssue 組成的 THPDFFacturXValidationIssues 集合
|
傳回值
當 validation report 已從載入的檔案填入時傳回 True
使用注意事項
- 請在 LoadFromFile 或 LoadFromStream 後呼叫此方法
- 此方法會驗證 HotPDF 可在沒有 EN 16931 business-rule engine 時檢查的 container requirements
- 檢查項目涵蓋 PDF/A-3 中繼資料、Catalog /AF 註冊、EmbeddedFiles name-tree 註冊、XMP 檔名一致性、profile 檔名規則、/AFRelationship 規則與 XML guideline 對齊
/AF與 EmbeddedFiles 名稱樹、FileSpec 的/F與/UF名稱、解碼後的 EmbeddedFile/Subtype、XMP 檔名、DocumentType與命名空間一致性、profile 檔名規則、/AFRelationship - The cross-consistency flags are
fxviInvalidAttachmentMimeType、fxviAttachmentFileNameMismatch、fxviInvalidXMPDocumentType與fxviInvalidXMPNamespace - 當呼叫端需要 invoice XML bytes 進行 schema 或 business-rule validation 時,請使用 ExtractFacturXXML
相關 API
- THotPDF.DetectFacturXInvoice Method
- THotPDF.ExtractFacturXXML Method
- THotPDF.GetLoadedDocumentMetadataBytes Method
- THotPDF.AddFacturXAssociatedFile Method