Table of Contents

Class PdfEncryptionOptions

Namespace
MiPdf.Security
Assembly
MiPdf.dll

Settings for encrypting a document with passwords.

public sealed class PdfEncryptionOptions
Inheritance
PdfEncryptionOptions
Inherited Members

Properties

Algorithm

The encryption algorithm (default Aes256).

public PdfEncryptionAlgorithm Algorithm { get; set; }

Property Value

PdfEncryptionAlgorithm

EncryptMetadata

Encrypt the XMP metadata stream (default true).

public bool EncryptMetadata { get; set; }

Property Value

bool

OwnerPassword

Password granting full access. If empty, a random password is generated.

public string OwnerPassword { get; set; }

Property Value

string

Permissions

Permissions granted to users who open the document with the user password (default All).

public PdfPermissions Permissions { get; set; }

Property Value

PdfPermissions

UserPassword

Password required to open the document (empty = opens without password, restrictions still apply).

public string UserPassword { get; set; }

Property Value

string