Class PdfEncryptionOptions
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
EncryptMetadata
Encrypt the XMP metadata stream (default true).
public bool EncryptMetadata { get; set; }
Property Value
OwnerPassword
Password granting full access. If empty, a random password is generated.
public string OwnerPassword { get; set; }
Property Value
Permissions
Permissions granted to users who open the document with the user password (default All).
public PdfPermissions Permissions { get; set; }
Property Value
UserPassword
Password required to open the document (empty = opens without password, restrictions still apply).
public string UserPassword { get; set; }