THotPDF.DetectFacturXInvoice Method
Detects a Factur-X or ZUGFeRD invoice attachment in a loaded document and exposes the attachment and XMP metadata needed for consistency validation
Declaration
function DetectFacturXInvoice(out AInfo: THPDFFacturXInvoiceInfo): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AInfo | Receives the detected invoice filename, XMP filename and namespace URI, document type, version, conformance level, XML guideline identifier, AF relationship, and decoded attachment MIME type |
Return value
Returns True when a supported e-invoice XML attachment is detected
Usage notes
- Call this method after LoadFromFile or LoadFromStream
- The method reads the document XMP metadata and the EmbeddedFiles name tree without adding an XML DOM dependency
XMPNamespaceURIidentifies the namespace bound to the XMPDocumentFileNameproperty, whileAttachmentMimeTypedecodes PDF name escapes such as#2Fbefore returning the normalized MIME type- The THPDFFacturXInvoiceInfo record is a container-level summary and does not validate EN 16931 business rules