THPDFFacturXInvoiceInfo Record
로드된 문서에 내장된 Factur-X 또는 ZUGFeRD 인보이스를 기술합니다. 첨부 파일 이름, XMP 메타데이터 값, 프로파일 식별자, MIME 타입, 보조 UBL·EDIFACT 표현 파일 이름을 다룹니다
선언
THPDFFacturXInvoiceInfo= record
FileName: AnsiString;
XMPDocumentFileName: AnsiString;
XMPNamespaceURI: AnsiString;
DocumentType: AnsiString;
Version: AnsiString;
ConformanceLevel: AnsiString;
GuidelineID: AnsiString;
AFRelationship: AnsiString;
AttachmentMimeType: AnsiString;
// Supplementary UBL representation file name ('factur-xubl.xml') when the
// document embeds a UBL view alongside the primary CII invoice per
// Factur-X 1.09 spec 6.4; empty when no UBL attachment is present. UBL is
// a supplementary representation, never the primary invoice XML
UBLFileName: AnsiString;
// Supplementary EDIFACT representation file name ('factur-xedifact.edi')
// when the document embeds an EDIFACT view alongside the primary CII
// invoice per Factur-X 1.09 spec 6.4; empty when no EDIFACT attachment is
// present. Like UBL it is a supplementary representation, never the
// primary invoice XML
EDIFACTFileName: AnsiString;
end;
유닛
HPDFDoc
필드
| 필드 | 목적 |
|---|---|
FileName | 실제로 발견한 내장 인보이스 첨부의 이름. 판별 가능하면 XMP DocumentFileName, 아니면 factur-x.xml, xrechnung.xml, zugferd-invoice.xml, ZUGFeRD-invoice.xml 중 하나 |
XMPDocumentFileName | 문서 XMP 메타데이터에서 읽은 fx:DocumentFileName 텍스트 |
XMPNamespaceURI | XMP 메타데이터에서 DocumentFileName 요소의 네임스페이스 URI |
DocumentType | XMP DocumentType 값. 인보이스 문서는 INVOICE를 갖습니다 |
Version | Factur-X 프로파일의 XMP Version 값 |
ConformanceLevel | Factur-X 프로파일의 XMP ConformanceLevel 값 |
GuidelineID | 내장 CII XML ExchangedDocumentContext에서 읽은 가이드라인 식별자(URN) |
AFRelationship | 인보이스 파일 스펙의 /AFRelationship 항목. 예를 들어 Data나 Alternative |
AttachmentMimeType | 내장 인보이스 파일의 MIME 타입 |
UBLFileName | 보조 UBL 표현이 내장되어 있으면 고정 이름 factur-xubl.xml, 아니면 빈 값 |
EDIFACTFileName | 보조 EDIFACT 표현이 내장되어 있으면 고정 이름 factur-xedifact.edi, 아니면 빈 값 |
사용 참고 사항
THotPDF.DetectFacturXInvoice가 채웁니다. 빈 필드는 대응 요소가 없었다는 뜻이고,false결과에도 부분 메타데이터가 진단용으로 남습니다UBLFileName과EDIFACTFileName은 보고용으로만 읽습니다. 이것들은 보조 표현 이름이지 기본 인보이스 XML이 아닙니다- 레코드는
THotPDF.ExtractFacturXXML과 함께 재사용하거나THotPDF.ValidateFacturXInvoice에 넘깁니다. 이 함수는 자체 보고서를 채우고 이 레코드를Info에 넣습니다