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
| 0 | No invoice XML was found, or one or more validation issues were detected |
|---|---|
| 1 | Invoice 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