HPDFValidateEInvoice
Validates a hybrid invoice container and its default profile business rules with explicit coverage diagnostics
Declaration
function HPDFValidateEInvoice(const Doc: THotPDF;
const SchematronDir: string;
out AReport: THPDFEInvoiceValidationReport): Boolean;
Unit
HPDFEInvoiceValidator
Behavior
Runs the PDF container check and, for a detected hybrid invoice, extracts its XML and selects the registered rule layers for its profile
The default registry supports the five shipped Factur-X business-rule profiles, while French profiles remain incomplete without their country rules and XRECHNUNG requires explicit official rule registration
Unknown profiles never fall back to EXTENDED, missing or incomplete rule layers fail closed, and the report records coverage separately from business-rule violations
Use HPDFValidateEInvoiceWithRegistry with a host-owned registry to add dedicated national resources and engine implementations
A PDF with no detected hybrid invoice receives only the container verdict, and ValidationComplete remains false because no invoice rule coverage was evaluated
Related APIs
E-Invoice Business-Rule Validation