TPDFlibAuditEvidenceRun

Data types, enterprise edition

Description

Runs one audit evidence operation. After the callback returns, TPDFlib clears LastErrorCode for a complete report and otherwise sets PDFLIB_ERROR_WORKFLOW_FAILED.

TPDFlib declares the public methods and a protected dispatch method for creating, comparing, signing and verifying audit evidence. 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

TPDFlibAuditEvidenceRun = Function(Action: TPDFlibAuditEvidenceAction;
  Const Input, RelatedJSON, Password, PFXFileName: WideString;
  DigestAlgorithm: Integer): WideString Of Object;

Parameters

ActionOperation to run; one of the values of TPDFlibAuditEvidenceAction
InputPDF path for aeaCreate, request JSON for aeaCreateBatch, earlier evidence JSON for aeaCompare, evidence JSON for aeaSign and envelope JSON for aeaVerify
RelatedJSONPolicy JSON for aeaCreate and aeaCreateBatch, later evidence JSON for aeaCompare, trust policy JSON for aeaVerify; empty otherwise
PasswordPassword for the input file for aeaCreate, PFX password for aeaSign; empty otherwise
PFXFileNamePath of the PFX identity for aeaSign; empty otherwise
DigestAlgorithmDigest for the signature for aeaSign: 2 SHA-256, 3 SHA-384 or 4 SHA-512; 0 otherwise

Return values

J

See also

TPDFlibAuditEvidenceAction, CreateAuditEvidence, SignAuditEvidence, VerifyAuditEvidenceEnvelope