[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.DecryptionOptions

Class DecryptionOptions

Namespace
GrapeCity.Documents.Pdf
Assembly
GcDocs.Pdf.dll

Represents decryption options used when loading a PDF document.

public class DecryptionOptions
Inheritance
object
DecryptionOptions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

DecryptionOptions()

public DecryptionOptions()

Properties

BytesPassword

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; }

Property Value

byte[]

StringPassword

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; }

Property Value

string

ThrowExceptionIfInvalidPassword

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; }

Property Value

bool

ThrowExceptionIfUnsupportedSecurityOptions

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; }

Property Value

bool