Class PdfEncryptionInfo
Namespace: Aspose.Html.Rendering.Pdf.Encryption
Assembly: Aspose.HTML.dll (25.2.0)
Contains details for a pdf encryption.
[ComVisible(true)]
public class PdfEncryptionInfo
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
PdfEncryptionInfo(string, string, PdfPermissions, PdfEncryptionAlgorithm)
Initializes a new instance of the Aspose.Html.Rendering.Pdf.Encryption.PdfEncryptionInfo class.
public PdfEncryptionInfo(string userPassword, string ownerPassword, PdfPermissions permissions, PdfEncryptionAlgorithm encryptionAlgorithm)
Parameters
userPassword
string
The user password.
ownerPassword
string
The owner password.
permissions
PdfPermissions
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 PdfPermissions 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.