Class PasswordEncryption
Password-based encryption settings for saving a PDF document (§7.6.3).
Inherited Members
Namespace: DRIT.Pdf.Security
Assembly: DRIT.Pdf.dll
Syntax
public sealed class PasswordEncryption
Properties
DocumentOpenPassword
Password required to open the document.
When null or empty the document can be opened without a password,
but the permissions below are still enforced.
Declaration
public string? DocumentOpenPassword { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EncryptionLevel
Encryption algorithm and key size. Defaults to AES-256.
Declaration
public EncryptionLevel EncryptionLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| EncryptionLevel |
Permissions
Permissions granted to users who supply the DocumentOpenPassword. Defaults to a reasonable read-only set.
Declaration
public UserAccessPermissions Permissions { get; set; }
Property Value
| Type | Description |
|---|---|
| UserAccessPermissions |
PermissionsPassword
Owner password that grants full access and overrides all permissions.
Falls back to DocumentOpenPassword when null.
Declaration
public string? PermissionsPassword { get; set; }
Property Value
| Type | Description |
|---|---|
| string |