PdfPasswordSecurityOptions.EncryptionLevel Property
Specifies the algorithm used to encrypt PDF content.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v26.1.Core.dll
NuGet Package: DevExpress.Printing.Core
Declaration
[DefaultValue(PdfEncryptionLevel.AES128)]
public PdfEncryptionLevel EncryptionLevel { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| PdfEncryptionLevel | AES128 | A PdfEncryptionLevel enumeration value. |
Available values:
| Name | Description |
|---|---|
| AES128 | Specifies the 128-bit AES (Advanced Encryption Standard) encryption algorithm. |
| AES256 | Specifies the 256-bit AES (Advanced Encryption Standard) encryption algorithm. |
| ARC4 | Specifies the 128-bit ARC4 (Alleged Rivest Cipher 4) encryption algorithm. |
Property Paths
You can access this nested property as listed below:
| Object Type | Path to EncryptionLevel |
|---|---|
| PdfExportOptions |
|
Remarks
After specifying PdfExportOptions.PasswordSecurityOptions, use the EncryptionLevel property to select the algorithm for encrypting content of a PDF file.
The following image illustrates the corresponding option in the Print Preview GUI.
