GetFacturXInvoiceInfo

文書プロパティ

説明

DetectFacturXInvoice が認識した電子請求書フィールドを読み取ります

構文

Delphi

Function TPDFlib.GetFacturXInvoiceInfo(Tag: Integer): WideString;

パラメータ

Tag読み取るフィールド番号: 1 は実際の XML ファイル名、2 は XMP DocumentFileName、3 は DocumentType、4 は Version、5 は ConformanceLevel、6 は XML ガイドライン 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