GetFacturXInvoiceInfo
文档属性
说明
读取 DetectFacturXInvoice 可识别的电子发票字段
语法
Delphi
Function TPDFlib.GetFacturXInvoiceInfo(Tag: Integer): WideString;
参数
| Tag | 字段编号,1 为实际 XML 文件名,2 为 XMP DocumentFileName,3 为 DocumentType,4 为 Version,5 为 ConformanceLevel,6 为 XML guideline ID,7 为 /AFRelationship |
|---|
返回值
返回请求字段的文本值;未检测到电子发票或字段编号未知时返回空字符串
示例
// Read the detected invoice profile
begin
if PDF.DetectFacturXInvoice = 1 then
begin
FileName := PDF.GetFacturXInvoiceInfo(1);
Profile := PDF.GetFacturXInvoiceInfo(5);
end;
end;
另请参阅
DetectFacturXInvoice、ValidateFacturXInvoice、ExtractFacturXXMLToString