Class PdfEncryptionDetails

Class PdfEncryptionDetails

Namespace: Aspose.Tasks.Saving
Assembly: Aspose.Tasks.dll (25.2.0)

Contains details for a PDF encryption.

public class PdfEncryptionDetails

Inheritance

objectPdfEncryptionDetails

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

PdfEncryptionDetails(string, string, PdfEncryptionAlgorithm)

Initializes a new instance of the Aspose.Tasks.Saving.PdfEncryptionDetails class.

public PdfEncryptionDetails(string userPassword, string ownerPassword, PdfEncryptionAlgorithm encryptionAlgorithm)

Parameters

userPassword string

The user password allowing to open protected documents.

ownerPassword string

The owner password allowing to open protected documents.

encryptionAlgorithm PdfEncryptionAlgorithm

The Aspose.Tasks.Saving.PdfEncryptionAlgorithm instance which indicate encryption algorithm.

Properties

EncryptionAlgorithm

Gets or sets the encryption mode.

public PdfEncryptionAlgorithm EncryptionAlgorithm { get; set; }

Property Value

PdfEncryptionAlgorithm

OwnerPassword

Gets or sets the Owner password.

public string OwnerPassword { get; set; }

Property Value

string

Remarks

Opening the document with the correct owner password (assuming it is not the same as the user password) allows full (owner) access to the document. This unlimited access includes the ability to change the document’s passwords and access permissions.

Permissions

Gets or sets the permissions.

public PdfPermissions Permissions { get; set; }

Property Value

PdfPermissions

UserPassword

Gets or sets the User password.

public string UserPassword { get; set; }

Property Value

string

Remarks

Opening the document with the correct user password (or opening a document that does not have a user password) allows additional operations to be performed according to the user access permissions specified in the document’s encryption dictionary.