PdfPasswordRequestedEventArgs.PasswordString Property
Specifies the security password to open a PDF file.
Namespace: DevExpress.Pdf
Assembly: DevExpress.Pdf.v18.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
String | A String value. |
Remarks
To interrupt the password request process, the PasswordString property value should be null.
Example
The following code illustrates the use of the PdfViewer.PasswordRequested event.
using System.Windows.Forms;
using DevExpress.Pdf;
// ...
private void pdfViewer1_PasswordRequested(object sender,
PdfPasswordRequestedEventArgs e) {
e.PasswordString = "password";
}
See Also