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