Namespace: BitMiracle.Docotic.Pdf
public PdfPublicKeyDecryptionHandler( X509Certificate2 certificate )
Public Sub New ( certificate As X509Certificate2 )
The certificate must be marked exportable. If it is not, then an instance of PdfException will be thrown.
To decrypt a document, the certificate should match a recipient specified in the document recipients collection. If the certificate does not match a recipient, an instance of CannotDecryptPdfException will be thrown later when the handler is used to decrypt a document.
The permissions for the decrypted document might vary, depending on the certificate.