Click or drag to resize
Pdftools logo

Encryption Class

The password and permissions that should be applied to a document, when it is created using the Create(Stream, NullableConformance, Encryption) or CreateWithFdf(Stream, Stream, NullableConformance, Encryption) methods. The encryption algorithm (e.g., MD4, AES) will be the highest level of encryption that is supported for the document Conformance. Note that encryption is not permitted for any PDF/A level Conformance.
Inheritance Hierarchy
SystemObject
  PdfTools.Toolbox.InternalNativeBase
    PdfTools.Toolbox.InternalNativeObject
      PdfTools.Toolbox.PdfEncryption

Namespace: PdfTools.Toolbox.Pdf
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.3.0+2e7887cb8ae45c4d911ad975ad001ac2f1f257d8
Syntax
C#
public class Encryption : NativeObject

The Encryption type exposes the following members.

Constructors
 NameDescription
Public methodEncryption The UserPassword may be used to open the document with the permissions defined by the Permissions parameter. The OwnerPassword may be used to open the document with no access restrictions. The Permissions may be (all permissions), or a concatenation of the allowed Permission values.
Top
Properties
 NameDescription
Public propertyOwnerPassword The owner password opens the document with no access restrictions.
Public propertyPermissions The permissions that will be granted to a user who opens the document using the UserPassword. The value is either null (all permissions), or a concatenation of the allowed Permission values.
Public propertyUserPassword The user password opens the document with the permissions defined by the Permissions parameter.
Top
Methods
 NameDescription
Public methodEquals
(Inherited from NativeObject)
Public methodGetHashCode
(Inherited from NativeObject)
Top
See Also