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
| Action | Operation to run; one of the values of TPDFlibAuditEvidenceAction |
|---|---|
| Input | PDF path for aeaCreate, request JSON for aeaCreateBatch, earlier evidence JSON for aeaCompare, evidence JSON for aeaSign and envelope JSON for aeaVerify |
| RelatedJSON | Policy JSON for aeaCreate and aeaCreateBatch, later evidence JSON for aeaCompare, trust policy JSON for aeaVerify; empty otherwise |
| Password | Password for the input file for aeaCreate, PFX password for aeaSign; empty otherwise |
| PFXFileName | Path of the PFX identity for aeaSign; empty otherwise |
| DigestAlgorithm | Digest 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