• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class PasswordEncryption

Password-based encryption settings for saving a PDF document (§7.6.3).

Inheritance
object
PasswordEncryption
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX