Click or drag to resize

PdfPasswordEncryptionEncryptionLevel Property

Gets or sets the encryption level.

Default value: AES_128.


Namespace: SautinSoft.Pdf.Security
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.6.5
Syntax
public PdfEncryptionLevel EncryptionLevel { get; set; }

Property Value

PdfEncryptionLevel
The encryption level.
Exceptions
ExceptionCondition
ArgumentExceptionValue is not RC4_40, RC4_128, AES_128 nor AES_256.
InvalidOperationExceptionCurrent encryption information is used to read or write an encrypted PDF file and cannot be changed. Set new encryption information instead.
See Also