TPDFlibFileComplianceRun

Data types, compliance

Description

Checks an external PDF file for compliance for the file check methods.

TPDFlib declares the public methods and a protected dispatch method for checking an external PDF file for compliance. 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

TPDFlibFileComplianceRun = Function(Kind: TPDFlibFileComplianceKind;
  Const InputFileName, Password: WideString; Target, Options: Integer): Integer Of Object;

Parameters

KindCheck to run: fckGeneral or fckPDFUA
InputFileNameFull path of the PDF file to validate; the file is read without being modified
PasswordOpen password, or an empty string for an unencrypted file
TargetStandard to check against for fckGeneral, reader profile for fckPDFUA, using the numbers documented with the public method
Options0 reports every issue, 1 stops after the first issue

Return values

0The implemented checks reported no issue, or the audit could not start
Non-zero valueString-list identifier whose entries describe each detected issue

See also

TPDFlibFileComplianceKind, TPDFlibReadComplianceKind, TPDFlibReadComplianceRun, CheckFileCompliance