PdfPasswordEncryptionEncryptionLevel Property |
Gets or sets the encryption level.
Default value: AES_128.
Namespace: SautinSoft.Pdf.SecurityAssembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.6.5
Syntaxpublic PdfEncryptionLevel EncryptionLevel { get; set; }
Public Property EncryptionLevel As PdfEncryptionLevel
Get
Set
Property Value
PdfEncryptionLevel
The encryption level.
ExceptionsException | Condition |
---|
ArgumentException | Value is not RC4_40, RC4_128, AES_128 nor AES_256. |
InvalidOperationException | Current encryption information is used to read or write an encrypted PDF file and cannot be changed. Set new encryption information instead. |
See Also