Click or drag to resize

PdfEncryptionLevel Structure

Represents a symmetric encryption algorithm used in a PDF file and the length of the encryption key used in that algorithm.
Inheritance Hierarchy
SystemObject
  SystemValueType
    SautinSoft.Pdf.SecurityPdfEncryptionLevel

Namespace: SautinSoft.Pdf.Security
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.4.23
Syntax
public struct PdfEncryptionLevel : IEquatable<PdfEncryptionLevel>

The PdfEncryptionLevel type exposes the following members.

Constructors
 NameDescription
Public methodPdfEncryptionLevel Initializes a new instance of the PdfEncryptionLevel structure.
Top
Properties
 NameDescription
Public propertyAlgorithm Gets the symmetric encryption algorithm.
Public propertyKeyLength Gets the length of the encryption key (in bits) used in the Algorithm.
Top
Methods
 NameDescription
Public methodEquals(Object) Determines whether the specified Object is equal to this PdfEncryptionLevel instance.
(Overrides ValueTypeEquals(Object))
Public methodEquals(PdfEncryptionLevel) Determines whether the specified PdfEncryptionLevel is equal to this PdfEncryptionLevel instance.
Public methodGetHashCode Returns a hash code for this PdfEncryptionLevel instance.
(Overrides ValueTypeGetHashCode)
Public methodToString Returns a String that represents this PdfEncryptionLevel instance.
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(PdfEncryptionLevel, PdfEncryptionLevel) Determines whether first and secondPdfEncryptionLevels are equal.
Public operatorStatic memberInequality(PdfEncryptionLevel, PdfEncryptionLevel) Determines whether first and secondPdfEncryptionLevels are not equal.
Top
Fields
 NameDescription
Public fieldStatic memberAES_128 The 128-bit AES encryption level.
Compatible with PDF_1_6.
Public fieldStatic memberAES_256 The 256-bit AES encryption level.
Compatible with PDF_1_7 using Adobe's extension level 8 or with PDF_2_0.
Public fieldStatic memberRC4_128 The 128-bit RC4 encryption level.
Public fieldStatic memberRC4_40 The 40-bit RC4 encryption level.
Top
See Also