TPDFlibSignatureVerdict

Data types, digital signatures

Description

Judges the updates appended after a signature for GetSignatureModificationVerdict.

TPDFlib declares the public methods and a protected dispatch method for the verdict on the updates appended after a signature. 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_SMALLBUSINESS_REQUIRED. Application code never declares, assigns or calls a value of this type.

Syntax

Delphi

TPDFlibSignatureVerdict = Function(Const Source: AnsiString;
  Const InputFile, Password, FieldName: WideString): Integer Of Object;

Parameters

SourceComplete bytes of the signed file, read by TPDFlib before the callback runs
InputFilePath the bytes were read from
PasswordPassword used to open the file, or an empty string
FieldNameSignature field to judge

Return values

1Nothing was appended after the signature
2Only changes the certification level permits were appended
3Something the certification level does not permit was appended
4The answer could not be determined
5The signature does not end on a revision boundary, or its signed ranges do not start at the first byte of the file
0The file or the field could not be read

See also

GetSignatureModificationVerdict, TPDFlibRevisionRead