TPDFlibInvoiceValidationJSON
Data types, invoices
Description
Runs one invoice validation provider and reports as JSON for the validation methods.
TPDFlib declares the public methods and a protected dispatch method for the business-rule validation of an embedded invoice with a named provider. The edition class supplies the implementation as a callback of this type. A plain TPDFlib instance supplies none, so the call returns the documented empty result and sets LastErrorCode to PDFLIB_ERROR_SMALLBUSINESS_REQUIRED. Application code never declares, assigns or calls a value of this type.
Syntax
Delphi
TPDFlibInvoiceValidationJSON = Function(Mode: TPDFlibInvoiceValidationMode;
Const EmbeddedFileName: WideString; Const Rules: TPDFInvoiceRuleSet;
Const Config: TPDFInvoiceExternalToolConfig; TimeoutMS: Integer): WideString Of Object;Parameters
| Mode | Provider to run: ivmTools, ivmPackage or ivmBuiltIn |
|---|---|
| EmbeddedFileName | Name of the embedded invoice attachment, or an empty string to select the detected Factur-X or ZUGFeRD invoice |
| Rules | TPDFInvoiceRuleSet with the standard, rule release, profile, schema and Schematron stylesheet the provider uses |
| Config | TPDFInvoiceExternalToolConfig with the paths of xmllint, Java and the Saxon class path |
| TimeoutMS | Timeout applied to each external tool in milliseconds |
Return values
| V |
See also
TPDFlibInvoiceValidationMode, TPDFlibInvoiceBusinessValidation, ValidateInvoiceBusinessRulesWithTools