Class PdfEncryptedDocumentException
- Namespace
- PdfEngine.Vector.Diagnostics
- Assembly
- PdfEngine.Vector.dll
The document is encrypted and cannot be opened: the password is missing or wrong (PasswordRequired), or the security handler is not supported.
public sealed class PdfEncryptedDocumentException : PdfVectorException, ISerializable
- Inheritance
-
PdfEncryptedDocumentException
- Implements
- Inherited Members
Constructors
PdfEncryptedDocumentException(string, bool, bool)
Creates the exception.
public PdfEncryptedDocumentException(string message = "Document is encrypted with an unsupported security handler.", bool passwordRequired = false, bool certificateRequired = false)
Parameters
messagestringThe message.
passwordRequiredboolTrue when a password is missing or wrong.
certificateRequiredboolTrue when no available certificate can open a public-key encrypted document.
Properties
CertificateRequired
Public-key encryption: none of the available certificates (with private keys) is a recipient.
public bool CertificateRequired { get; }
Property Value
PasswordRequired
True when a password is missing or wrong. Ask the user for the password and open the document again.
public bool PasswordRequired { get; }