officefileapi-devexpress-dot-docs-dot-pdf-dot-encryptionoptions-cc631b55.md
Gets a user password that protects opening the document.
Namespace : DevExpress.Docs.Pdf
Assembly : DevExpress.Docs.Core.v25.2.dll
NuGet Package : DevExpress.Docs.Core
public string UserPassword { get; }
Public ReadOnly Property UserPassword As String
| Type | Description |
|---|---|
| String |
The user password.
|
You can access this nested property as listed below:
| Object Type | Path to UserPassword |
|---|---|
| PdfExportOptions |
.EncryptionOptions .UserPassword
|
The UserPassword property allows you to obtain the open (or user) password. This password is used when you want to prevent unauthorized access to a document. This password protects sensitive information.
To specify this password, define the UserPassword parameter of the EncryptionOptions constructor.
If a document is opened with a user password or without a password (if the user password is not specified), you can perform only permitted operations.
To apply operation restrictions, define the OwnerPassword parameter of the EncryptionOptions constructor.
See Also