Back to Devexpress

EncryptionOptions.OwnerPassword Property

officefileapi-devexpress-dot-docs-dot-pdf-dot-encryptionoptions-986b67e9.md

latest2.3 KB
Original Source

EncryptionOptions.OwnerPassword Property

Gets an owner password that allows full access to a document.

Namespace : DevExpress.Docs.Pdf

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

NuGet Package : DevExpress.Docs.Core

Declaration

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

Property Value

TypeDescription
String

The owner password.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to OwnerPassword
PdfExportOptions

.EncryptionOptions .OwnerPassword

|

Remarks

The OwnerPassword property obtains the permission (or owner) password used to restrict operations in a PDF document.

Note

If the Owner and User passwords are the same, or the Owner password is missing and the document is protected only with the User password, the resulting document has a document opening restriction. In this case, all users have full access to this document after opening it.

To apply operation restrictions, define the OwnerPassword parameter of the EncryptionOptions constructor. Users will need to enter the owner password when opening the document to get full access to its operations.

To set the open password and restrict an access to the document, define the UserPassword parameter of the EncryptionOptions constructor.

See Also

EncryptionOptions Class

EncryptionOptions Members

DevExpress.Docs.Pdf Namespace