PdfSignature
A digital signature in a signature field (ISO 32000-1, 12.8): what its signature dictionary says, and validate to check it. PdfDocument.signatures lists the signatures of a document.
Properties
The permission level when this is a certification signature (/DocMDP, ISO 32000-1, 12.8.2.2): 1 allows no change, 2 allows filling in forms and signing, and 3 also allows annotations. Null for an approval signature.
How to reach the signer (/ContactInfo), or null.
The signature field that holds this signature.
True for a document timestamp (/Type /DocTimeStamp, ISO 32000-2, 12.8.5). A timestamp authority signs it to prove that the document existed at a time. It names no person.
The signer's name as the signing application wrote it (/Name). PdfSignatureValidation.signer is the checked name.
When the document was signed, as the signing application wrote it (/M). Nothing checks this time.
Functions
Checks the signature against the file. trustAnchors are the DER encodings of the certificates the caller trusts. An entry that is not a certificate is ignored. The check hashes the signed bytes, which are almost the whole file, so run it off the main thread.