officefileapi-devexpress-dot-docs-dot-pdf-dot-encryptionoptions-986b67e9.md
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
public string OwnerPassword { get; }
Public ReadOnly Property OwnerPassword As String
| Type | Description |
|---|---|
| String |
The owner password.
|
You can access this nested property as listed below:
| Object Type | Path to OwnerPassword |
|---|---|
| PdfExportOptions |
.EncryptionOptions .OwnerPassword
|
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