ValidateFacturXInvoice

Document properties

Description

Validates the current document's e-invoice XML against the built-in PDF/A-3 container, XMP file name, conformance level, guideline ID, and /AFRelationship checks

Syntax

Delphi

Function TPDFlib.ValidateFacturXInvoice: Integer;

Return values

0No invoice XML was found, or one or more validation issues were detected
1Invoice XML and the PDF container passed the built-in validation checks

Remarks

Call GetFacturXValidationIssues after validation to retrieve issue identifiers such as MissingPDFAMetadata, NotPDFA3, DocumentFileNameMismatch, or InvalidAFRelationship

The validation checks container and profile consistency. It does not replace business XML schema validation, tax-rule validation, or external conformance tools

Example

// Report container-level invoice issues
begin
  if PDF.ValidateFacturXInvoice = 0 then
    Issues := PDF.GetFacturXValidationIssues('|');
end;

See also

GetFacturXValidationIssues, DetectFacturXInvoice, GetFacturXInvoiceInfo

Invoice business rules

This method checks the hybrid PDF container and identification conventions; it does not execute invoice XML schemas or EN16931 business rules

Use ValidateInvoiceBusinessRules with a versioned provider or ValidateInvoiceBusinessRulesWithTools with explicit XSD and compiled Schematron files for that independent stage