[]
Represents decryption options used when loading a PDF document.
public class DecryptionOptions
public DecryptionOptions()
Gets or sets the bytes array specifying the password to open a PDF document. This property is useful when password contains specific regional character which cannot be converted to bytes using UTF8 encoding.
Note that only one of StringPassword or BytesPassword can be specified, but not both.
public byte[] BytesPassword { get; set; }
Gets or sets the string specifying the password to open a PDF document.
Note that only one of StringPassword or BytesPassword can be specified, but not both.
public string StringPassword { get; set; }
Gets or sets a value indicating whether to throw an exception if the specified password is invalid.
If false, the document will be opened even if the specified password is invalid, but many methods and properties will not work in this case. The default is true.
public bool ThrowExceptionIfInvalidPassword { get; set; }
Gets or sets a value indicating whether to throw an exception if the definition of the security handler is in unknown or invalid format.
If false, the document will be opened even if the security handler cannot be parsed, but many methods and properties will not work in this case. The default is true.
public bool ThrowExceptionIfUnsupportedSecurityOptions { get; set; }