Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfPasswordRequestedEventArgs.PasswordString Property

Specifies the security password to open a PDF file.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v24.2.Core.dll

NuGet Package: DevExpress.Pdf.Core

#Declaration

public string PasswordString { get; set; }

#Property Value

Type Description
String

The security password.

#Remarks

To interrupt the password request process, set the PasswordString property to null (Nothing in Visual Basic).

#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