THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

الأعلى  السابق  التالي

يحدّد ما إذا كان مستند PDF مشفَّرًا.

 

Delphi syntax:

property ActivateProtection: Boolean;

 

C++ syntax:

__property bool ActivateProtection;

 

الوصف

يمكن تشفير مستند PDF لحماية محتواه من الوصول غير المصرّح به. عيّن ActivateProtection إلى true لتفعيل تشفير PDF، أو عيّن ActivateProtection إلى 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 := [prPrint, prInformationCopy]; // Allow printing and copying only
HPDF.ActivateProtection := true;           // Enable PDF security

 

انظر أيضا: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword