TPDFlibSBSignReview
Editions
Description
TPDFlibSBSignReview (unit PDFlibSBSignReview) descends from TPDFlibSBBarcodes and implements the Small Business signature modification review: it judges what the certification permission of a signature allowed the updates after it to do, from the revision map and the permission reports the document already carries.
It belongs to the Small Business edition; the Enterprise edition includes every Small Business class, so it is part of both editions. TPDFlibSBCertificate descends from it and adds the next feature group.
Syntax
Delphi
TPDFlibSBSignReview = Class(TPDFlibSBBarcodes);Key members
| GetSignatureModificationVerdict | Checks the file for the signature field FieldName and returns the verdict over the updates that follow the signature: 1 nothing follows, 2 only permitted changes follow, 3 a change the certification level forbids follows, 4 the answer could not be determined, 5 the signed ranges do not cover the file correctly, 0 the file or the field could not be read |
|---|---|
| GetSignatureEffectiveMDPLevel | Returns the certification permission level in force after the last verdict, the lowest level of the certifications and signed field locks that bind the updates after them; 3 when nothing certified the document |
| GetSignatureModificationDetail | Returns the explanation the last verdict left |
Remarks
A call to GetSignatureModificationVerdict resets the cached level to 3 and the detail to an empty string before it runs; the two accessors return what the last verdict left.
The review validates no trust path and retrieves nothing: it reads the byte ranges of the signature, the revision map and the permission reports of the file. Trust validation and revocation retrieval stay in the Enterprise edition.
Until Version 4.26.0 the three methods were implemented by TPDFlibEntSignVerify; they moved to this class because nothing they call is Enterprise-only.
Applications normally create TPDFlibSmallBusiness or TPDFlibEnterprise and get the methods of this class through them. The same methods on a plain TPDFlib return 0, an empty string or False and set LastErrorCode to PDFLIB_ERROR_SMALLBUSINESS_REQUIRED.
See also
TPDFlibSBBarcodes, TPDFlibSBCertificate, TPDFlibSmallBusiness, TPDFlibEnterprise