TPDFlibInvoicePackageRun

Data types, invoices

Description

Creates a rule package or inspects an existing one. The two public methods fill the rule set differently: CreateInvoiceRulePackage passes the package description and GetInvoiceRulePackageInfo passes only the package location and its expected hash.

TPDFlib declares the public methods and a protected dispatch method for creating and inspecting invoice rule packages. 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

TPDFlibInvoicePackageRun = Function(CreatePackage: Boolean;
  Const Directory, Syntax: WideString; Const Rules: TPDFInvoiceRuleSet): WideString Of Object;

Parameters

CreatePackageTrue writes a package from a directory, False inspects an existing package
DirectoryPackage directory that receives the manifest; empty when a package is inspected
SyntaxOptional syntax name of the invoice, such as CII; empty when a package is inspected
RulesTPDFInvoiceRuleSet; for creation the standard, rule release, profile, schema and stylesheet, for inspection the package location and the expected manifest hash

Return values

J

See also

CreateInvoiceRulePackage, GetInvoiceRulePackageInfo, TPDFlibInvoiceValidationMode