Skip to main content
All docs
V25.1
  • EncryptionOptions.UserPassword Property

    Specifies a user password that protects opening the document.

    Namespace: DevExpress.Docs.Pdf

    Assembly: DevExpress.Docs.Core.v25.1.dll

    NuGet Package: DevExpress.Docs.Core

    Declaration

    public string UserPassword { get; set; }

    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
    .EncryptionOptions .UserPassword

    Remarks

    The UserPassword property allows you to specify the open (or user) password. This password is used when you want to prevent unauthorized access to a document. This password protects sensitive information.

    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. Use the EncryptionOptions.OwnerPassword to apply operation restrictions.

    See Also