Class PdfEncryptionDetails

Class PdfEncryptionDetails

Namespace: Aspose.Page.XPS.Presentation.Pdf
Assembly: Aspose.Page.dll (25.1.2)

包含有关 PDF 加密的详细信息。

public class PdfEncryptionDetails

继承

objectPdfEncryptionDetails

继承成员

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

构造函数

PdfEncryptionDetails(string, string, int, PdfEncryptionAlgorithm)

初始化 Aspose.Rendering.Pdf.PdfEncryptionDetailsCore 类的新实例。

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

参数

userPassword string

用户密码。

ownerPassword string

所有者密码。

permissions int

权限。

encryptionAlgorithm PdfEncryptionAlgorithm

加密算法。

属性

EncryptionAlgorithm

获取或设置加密模式。

public PdfEncryptionAlgorithm EncryptionAlgorithm { get; set; }

属性值

PdfEncryptionAlgorithm

OwnerPassword

获取或设置所有者密码。

public string OwnerPassword { get; set; }

属性值

string

备注

使用正确的所有者密码打开文档(假设它与用户密码不同)可以完全访问文档(所有者访问)。这种无限制的访问权限包括更改文档密码和访问权限的能力。

Permissions

获取或设置权限。

public int Permissions { get; set; }

属性值

int

UserPassword

获取或设置用户密码。

public string UserPassword { get; set; }

属性值

string

备注

使用正确的用户密码打开文档(或打开没有用户密码的文档)可以根据文档加密字典中指定的用户访问权限执行其他操作。

 中文