TPDFlibComplianceReportRun

Data types, compliance

Description

Creates or saves one compliance report for the report methods.

TPDFlib declares the public methods and a protected dispatch method for creating and saving preflight and validation reports. 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_ENTERPRISE_REQUIRED. Application code never declares, assigns or calls a value of this type.

Syntax

Delphi

TPDFlibComplianceReportRun = Function(Action: TPDFlibComplianceReportAction;
  Const InputFileName, Password, OutputFileName: WideString;
  ComplianceTests, Options, ReportFormat: Integer): TPDFlibComplianceReportResult Of Object;

Parameters

ActionReport to produce; one of the values of TPDFlibComplianceReportAction
InputFileNameFull path of the PDF file to validate; the file is opened read-only
PasswordPassword used to open the file, or an empty string for an unencrypted document
OutputFileNameDestination path of the report file for the craSave actions; empty for the others
ComplianceTestsBit mask selecting the checks: 1 PDF/A, 2 PDF/UA, 3 or 0 both
OptionsBit flags passed to each check; 1 stops each check after its first issue
ReportFormatOutput format: 0 text or XML, 1 JSON, 2 HTML, 3 CSV, as documented with the public method

Return values

`

See also

TPDFlibComplianceReportAction, TPDFlibComplianceReportResult, CreatePreflightReportEx, SavePreflightReport