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
| Kind | Check to run: fckGeneral or fckPDFUA |
|---|---|
| InputFileName | Full path of the PDF file to validate; the file is read without being modified |
| Password | Open password, or an empty string for an unencrypted file |
| Target | Standard to check against for fckGeneral, reader profile for fckPDFUA, using the numbers documented with the public method |
| Options | 0 reports every issue, 1 stops after the first issue |
Return values
| 0 | The implemented checks reported no issue, or the audit could not start |
|---|---|
| Non-zero value | String-list identifier whose entries describe each detected issue |
See also
TPDFlibFileComplianceKind, TPDFlibReadComplianceKind, TPDFlibReadComplianceRun, CheckFileCompliance