THPDFFacturXValidationReport Record
Verdict of a Factur-X invoice validation pass: hybrid-invoice flag, validity verdict, the detected invoice info and the set of raised issues
Declaration
THPDFFacturXValidationReport= record
IsHybridInvoice: boolean;
IsValid: boolean;
Info: THPDFFacturXInvoiceInfo;
Issues: THPDFFacturXValidationIssues;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
IsHybridInvoice | true once detection succeeds, meaning the document carries a Factur-X or ZUGFeRD invoice attachment next to the PDF content |
IsValid | true only when IsHybridInvoice holds and Issues is empty; mirrors the function result |
Info | THPDFFacturXInvoiceInfo filled by the invoice detection, available whenever the invoice was found |
Issues | Set of THPDFFacturXValidationIssue values naming every container, metadata, MIME, namespace or profile problem found |
Usage notes
- Filled by
THotPDF.ValidateFacturXInvoice; the record is cleared on entry, so a missing invoice shows up asIsHybridInvoice= falsewithfxviMissingInvoiceXMLinIssues - Iterate the
Issuesset rather than relying onIsValidalone when explaining failures in UIs or logs - Read
Infofor the file name, profile and MIME details needed to fix the reported issues