Click or drag to resize

PdfPasswordEncryption Class

Stores encryption-related information for a PDF’s standard security handler that shall allow up to two passwords to be specified for a document: a DocumentOpenPassword and a PermissionsPassword with access Permissions.
Inheritance Hierarchy
SystemObject
  SautinSoft.PdfPdfObject
    SautinSoft.Pdf.SecurityPdfEncryption
      SautinSoft.Pdf.SecurityPdfPasswordEncryption

Namespace: SautinSoft.Pdf.Security
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.11.26
Syntax
public sealed class PdfPasswordEncryption : PdfEncryption

The PdfPasswordEncryption type exposes the following members.

Properties
 NameDescription
Public propertyDocumentOpenPassword

Gets or sets the Document Open password (also known as a user password) required to open the PDF file.

Default value: Empty (PDF file can be decrypted without a password).

Public propertyEncryptionLevel

Gets or sets the encryption level.

Default value: AES_128.

Public propertyOptions

Gets or sets the encryption options.

Default value: EncryptAll.

Public propertyPermissions(Required) A set of flags specifying which operations shall be permitted when the document is opened with user access (see Table 22).
Public propertyPermissionsPassword

Gets or sets the Permissions password (also known as a master password) required if a user performs an action that is not allowed by Permissions.

Default value: DocumentOpenPassword (actions not allowed by Permissions can be performed without a password).

Top
Extension Methods
 NameDescription
Public Extension MethodGetArray Gets the PdfArray that serves as a backing storage of the specified PdfObject or if no PdfArray serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetOrAddDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Top
See Also