Class PdfEncryptionDetails

Class PdfEncryptionDetails

Tên không gian: Aspose.Words.Saving Tổng hợp: Aspose.Words.dll (25.4.0)

Nó chứa chi tiết để mã hóa và quyền truy cập cho một tài liệu PDF.

Để tìm hiểu thêm, hãy ghé thăm Protect or Encrypt a Document tài liệu bài viết.

public class PdfEncryptionDetails

Inheritance

object PdfEncryptionDetails

Thành viên thừa kế

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

Constructors

PdfEncryptionDetails(Thẻ, string)

Bắt đầu một trường hợp của lớp này.

public PdfEncryptionDetails(string userPassword, string ownerPassword)

Parameters

userPassword string

ownerPassword string

PdfEncryptionDetails(string, string, PdfPermissions)

Bắt đầu một trường hợp của lớp này.

public PdfEncryptionDetails(string userPassword, string ownerPassword, PdfPermissions permissions)

Parameters

userPassword string

ownerPassword string

permissions PdfPermissions

Properties

OwnerPassword

Nhập mật khẩu chủ sở hữu cho tài liệu PDF được mã hóa.

public string OwnerPassword { get; set; }

Giá trị bất động sản

string

Remarks

Mật khẩu chủ cho phép người dùng mở một tài liệu PDF mã hóa mà không có bất kỳ hạn chế truy cập nào được chỉ định trong Aspose.Words.Saving.PdfEncryptionDetails.Permissions.

Mật khẩu chủ sở hữu không thể giống như mật khẩu người dùng.

Permissions

Nó chỉ định các hoạt động được phép cho một người dùng trên một tài liệu PDF mã hóa.Giá trị mặc định là Aspose.Words.Saving.PdfPermissions.DisallowAll.

public PdfPermissions Permissions { get; set; }

Giá trị bất động sản

PdfPermissions

UserPassword

Cài đặt mật khẩu người dùng cần thiết để mở tài liệu PDF được mã hóa.

public string UserPassword { get; set; }

Giá trị bất động sản

string

Remarks

Mật khẩu người dùng sẽ được yêu cầu để mở một tài liệu PDF mã hóa để xem. Các quyền được chỉ định trong Aspose.Words.Saving.PdfEncryptionDetails.Permissions sẽ được thực hiện bởi phần mềm đọc.

Mật khẩu người dùng có thể là hoặc dòng trống, trong trường hợp này không có mật khẩu sẽ được yêu cầu từ người dùng khi mở tài liệu PDF.

 Tiếng Việt