THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

بالا  قبلی  بعدی

مشخص می‌کند که آیا سند PDF رمزگذاری شده است

 

Delphi syntax:

property ActivateProtection: Boolean;

 

C++ syntax:

__property bool ActivateProtection;

 

توضیح

یک سند PDF را می‌توان برای محافظت از محتوای آن در برابر دسترسی غیرمجاز رمزگذاری کرد. ActivateProtection را روی true بگذارید تا رمزگذاری PDF فعال شود، یا روی false بگذارید تا غیرفعال شود

Default value: false

 

Code Example

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