THPDFFacturXInvoiceInfo レコード
ロード済みドキュメントに埋め込まれた 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に格納します