THotPDF.ExtractFacturXXML Method
方法摘要: THotPDF.ExtractFacturXXML Method
宣告
function ExtractFacturXXML(out AXMLBytes: TBytes): Boolean;
單元
HPDFDoc
參數
| 名稱 | 用途 |
|---|---|
AXMLBytes | 方法傳回 True 時接收擷取出來的發票 XML 位元組 |
傳回值
當找到並複製 primary invoice XML bytes 時傳回 True
使用注意事項
- 此方法會先呼叫 DetectFacturXInvoice,以識別 primary invoice XML filename
- 當 loaded document 不包含可偵測的 hybrid invoice XML file 時,output byte array 會被清空
- This API extracts the XML payload only; schema and business-rule validation remain the caller's responsibility
相關 API
- THotPDF.ValidateFacturXInvoice Method
- THotPDF.DetectFacturXInvoice Method
- THotPDF.ExtractEmbeddedFileBytes Method
- THotPDF.AddFacturXAssociatedFile Method