corelibraries-devexpress-dot-xtraprinting-dot-pdfpasswordsecurityoptions.md
Specifies the algorithm used to encrypt PDF content.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[DefaultValue(PdfEncryptionLevel.AES128)]
public PdfEncryptionLevel EncryptionLevel { get; set; }
<DefaultValue(PdfEncryptionLevel.AES128)>
Public Property EncryptionLevel As PdfEncryptionLevel
| 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.
|
You can access this nested property as listed below:
| Object Type | Path to EncryptionLevel |
|---|---|
| PdfExportOptions |
.PasswordSecurityOptions .EncryptionLevel
|
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.
See Also
PdfPasswordSecurityOptions Class