Click or drag to resize

PdfLoadOptionsPassword Property

Gets or sets the password to open protected / encrypted PDF document.

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version: 29.0.35.1031
Syntax
public string Password { get; set; }

Property Value

Type: String
The password to open protected / encrypted PDF document.
Remarks

Opening an encrypted PDF document with not specified or invalid password raises InvalidOperationException.

If PDF document is not encrypted, then value of this property is simply ignored.

For an example of reading and/or writing encrypted PDF file, see PDF encryption example.

See Also