EncryptionOptions.UserPassword Property
Gets a user password that protects opening the document.
Namespace: DevExpress.Docs.Pdf
Assembly: DevExpress.Docs.Core.v26.1.dll
NuGet Package: DevExpress.Docs.Core
Declaration
Property Value
| Type | Description |
|---|---|
| String | The user password. |
Property Paths
You can access this nested property as listed below:
| Object Type | Path to UserPassword |
|---|---|
| PdfExportOptions |
|
Remarks
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.