THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Đầu trang  Trước  Tiếp

Xác định tài liệu PDF có được mã hóa hay không

 

Delphi syntax:

property ActivateProtection: Boolean;

 

C++ syntax:

__property bool ActivateProtection;

 

Mô tả

Tài liệu PDF có thể được mã hóa để bảo vệ nội dung khỏi truy cập trái phép. Đặt ActivateProtection thành true để bật mã hóa PDF, hoặc thành false để tắt mã hóa

Default value: false

 

Ví dụ mã

HPDF.OwnerPassword := 'password';          // Set owner password (required to change security settings)
HPDF.UserPassword := 'user';               // Set user password (required to open the document)
HPDF.ProtectOptions := [poEdit, poAnnot];  // Disallow editing and annotations
HPDF.ActivateProtection := true;           // Enable PDF security

 

See also: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword