Class PdfEncryptionDetails
Password and permission settings used to encrypt an exported PDF.
Inherited Members
Namespace: DRIT.Document.Export.Pdf
Assembly: DRIT.Document.dll
Syntax
public sealed class PdfEncryptionDetails
Constructors
PdfEncryptionDetails(string, string)
Initializes PDF encryption settings.
Declaration
public PdfEncryptionDetails(string userPassword, string ownerPassword = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userPassword | The password required to open the PDF. |
| string | ownerPassword | The password that grants full access. |
Properties
EncryptionLevel
Gets or sets the encryption level. The default is AES-256.
Declaration
public PdfEncryptionLevel EncryptionLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| PdfEncryptionLevel |
OwnerPassword
Gets or sets the owner password that grants full access.
Declaration
public string OwnerPassword { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Permissions
Gets or sets the permissions granted with the user password.
Declaration
public PdfUserAccessPermissions Permissions { get; set; }
Property Value
| Type | Description |
|---|---|
| PdfUserAccessPermissions |
UserPassword
Gets or sets the password required to open the PDF.
Declaration
public string UserPassword { get; set; }
Property Value
| Type | Description |
|---|---|
| string |