Back to Devexpress

PdfPasswordSecurityOptions.EncryptionLevel Property

corelibraries-devexpress-dot-xtraprinting-dot-pdfpasswordsecurityoptions.md

latest2.6 KB
Original Source

PdfPasswordSecurityOptions.EncryptionLevel Property

Specifies the algorithm used to encrypt PDF content.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(PdfEncryptionLevel.AES128)]
public PdfEncryptionLevel EncryptionLevel { get; set; }
vb
<DefaultValue(PdfEncryptionLevel.AES128)>
Public Property EncryptionLevel As PdfEncryptionLevel

Property Value

TypeDefaultDescription
PdfEncryptionLevelAES128

A PdfEncryptionLevel enumeration value.

|

Available values:

NameDescription
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 TypePath to EncryptionLevel
PdfExportOptions

.PasswordSecurityOptions .EncryptionLevel

|

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.

See Also

Export to PDF

PdfPasswordSecurityOptions Class

PdfPasswordSecurityOptions Members

DevExpress.XtraPrinting Namespace