DetectFacturXInvoice

문서 속성

설명

현재 문서에 인식 가능한 전자 인보이스 XML이 있는지 확인하고, XMP와 XML 메타데이터에서 기본 식별자를 읽습니다

구문

Delphi

Function TPDFlib.DetectFacturXInvoice: Integer;

반환 값

0인식 가능한 전자 인보이스 XML을 찾지 못했습니다
1인식 가능한 전자 인보이스 XML을 찾았습니다

비고

검출은 먼저 XMP의 DocumentFileName 값을 쓰고, 이어서 factur-x.xml, xrechnung.xml, zugferd-invoice.xml, ZUGFeRD-invoice.xml을 차례로 시도합니다

호출에 성공한 뒤에는 GetFacturXInvoiceInfo로 파일 이름, 버전, 준수 수준, 가이드라인 ID, /AFRelationship를 읽으십시오

예제

// Check whether the loaded PDF carries invoice XML
begin
  if PDF.DetectFacturXInvoice = 1 then
    InvoiceFileName := PDF.GetFacturXInvoiceInfo(1);
end;

참고 항목

GetFacturXInvoiceInfo, ValidateFacturXInvoice, ExtractFacturXXMLToString