THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Üst  Önceki  Sonraki

Determines whether the PDF document is encrypted.

 

Delphi sözdizimi:

property ActivateProtection: Boolean;

 

C++ sözdizimi:

__property bool ActivateProtection;

 

Açıklama

Bir PDF belgesi, içeriğini yetkisiz erişime karşı korumak için şifrelenebilir. PDF şifrelemeyi etkinleştirmek için ActivateProtection'ı true, devre dışı bırakmak için false yapın.

Varsayılan değer: false

 

Kod Örneği

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

 

Ayrıca bkz.: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword