Back to Devexpress

EncryptionOptions.UserPassword Property

officefileapi-devexpress-dot-docs-dot-pdf-dot-encryptionoptions-cc631b55.md

latest2.1 KB
Original Source

EncryptionOptions.UserPassword Property

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

Declaration

csharp
public string UserPassword { get; }
vb
Public ReadOnly Property UserPassword As String

Property Value

TypeDescription
String

The user password.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to UserPassword
PdfExportOptions

.EncryptionOptions .UserPassword

|

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.

See Also

EncryptionOptions Class

EncryptionOptions Members

DevExpress.Docs.Pdf Namespace