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
| Source | Complete bytes of the signed file, read by TPDFlib before the callback runs |
|---|---|
| InputFile | Path the bytes were read from |
| Password | Password used to open the file, or an empty string |
| FieldName | Signature field to judge |
Return values
| 1 | Nothing was appended after the signature |
|---|---|
| 2 | Only changes the certification level permits were appended |
| 3 | Something the certification level does not permit was appended |
| 4 | The answer could not be determined |
| 5 | The signature does not end on a revision boundary, or its signed ranges do not start at the first byte of the file |
| 0 | The file or the field could not be read |