Class PdfEncryptionDetails
Namespace: Aspose.Page.XPS.Presentation.Pdf
Assembly: Aspose.Page.dll (25.1.2)
Contains details for a pdf encryption.
public class PdfEncryptionDetails
Inheritance
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, int, PdfEncryptionAlgorithm)
Initializes a new instance of the Aspose.Rendering.Pdf.PdfEncryptionDetailsCore class.
public PdfEncryptionDetails(string userPassword, string ownerPassword, int permissions, PdfEncryptionAlgorithm encryptionAlgorithm)
Parameters
userPassword
string
The user password.
ownerPassword
string
The owner password.
permissions
int
The permissions.
encryptionAlgorithm
PdfEncryptionAlgorithm
The encryption algorithm.
Properties
EncryptionAlgorithm
Gets or sets the encryption mode.
public PdfEncryptionAlgorithm EncryptionAlgorithm { get; set; }
Property Value
OwnerPassword
Gets or sets the Owner password.
public string OwnerPassword { get; set; }
Property Value
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 int Permissions { get; set; }
Property Value
UserPassword
Gets or sets the User password.
public string UserPassword { get; set; }
Property Value
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.