THotPDF.ValidateFacturXInvoice Method
Method summary: THotPDF.ValidateFacturXInvoice Method
Declaration
function ValidateFacturXInvoice(out AReport: THPDFFacturXValidationReport): Boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AReport | Receives the validation report with detected metadata and issue flagsTHPDFFacturXValidationReport with detected metadata and a THPDFFacturXValidationIssues set of THPDFFacturXValidationIssue values |
Return value
Returns True when the validation report was populated from a loaded document
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, Catalog /AF registration, EmbeddedFiles name-tree registration, XMP filename consistency, profile filename rules, /AFRelationship rules, and XML guideline alignment
/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 THPDFFacturXValidationIssue enum includes fxviMissingPDFAMetadata, fxviNotPDFA3, fxviMissingCatalogAF, fxviMissingEmbeddedFilesNameTree, fxviMissingInvoiceXML, fxviDocumentFileNameMismatch, fxviConformanceGuidelineMismatch, fxviInvalidAFRelationship, and fxviInvalidFileNameProfile
fxviInvalidAttachmentMimeType,fxviAttachmentFileNameMismatch,fxviInvalidXMPDocumentType, andfxviInvalidXMPNamespace; existing flags continue to report missing PDF/A metadata, Catalogue 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
Related APIs
- THotPDF.DetectFacturXInvoice Method
- THotPDF.ExtractFacturXXML Method
- THotPDF.GetLoadedDocumentMetadataBytes Method
- THotPDF.AddFacturXAssociatedFile Method