THotPDF.ValidateFacturXInvoice Method
Validates a loaded Factur-X or ZUGFeRD invoice container and cross-checks its attachment, Catalog AF registration, EmbeddedFiles entry, XMP metadata, profile, relationship, filename, MIME type, and XML guideline
Declaration
function ValidateFacturXInvoice(out AReport: THPDFFacturXValidationReport): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AReport | Receives a THPDFFacturXValidationReport with detected metadata and a THPDFFacturXValidationIssues set of THPDFFacturXValidationIssue values |
Return value
Returns True only when a hybrid invoice is detected and the report contains no issues
Usage notes
- Call this method after LoadFromFile or LoadFromStream
- The method validates container requirements that HotPDF can inspect without an EN 16931 business-rule engine
- Checks include PDF/A-3 metadata, identity of the FileSpec referenced by Catalog
/AFand the EmbeddedFiles name tree, FileSpec/Fand/UFnames, decoded EmbeddedFile/Subtype, XMP filename,DocumentType, and namespace consistency, profile filename rules,/AFRelationshiprules, and XML guideline alignment - The cross-consistency flags are
fxviInvalidAttachmentMimeType,fxviAttachmentFileNameMismatch,fxviInvalidXMPDocumentType, andfxviInvalidXMPNamespace; existing flags continue to report missing PDF/A metadata, Catalog AF and name-tree registration, invoice XML, XMP filename mismatch, XML guideline mismatch, invalid AF relationships, and invalid filename/profile combinations - Use ExtractFacturXXML when the caller needs the invoice XML bytes for schema or business-rule validation