THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Góra  Poprzedni  Następny

Określa, czy dokument PDF jest zaszyfrowany

 

Delphi syntax:

property ActivateProtection: Boolean;

 

C++ syntax:

__property bool ActivateProtection;

 

Opis

Dokument PDF można zaszyfrować, aby chronić jego zawartość przed nieautoryzowanym dostępem. Ustaw ActivateProtection na true, aby włączyć szyfrowanie PDF, lub ustaw ActivateProtection na false, aby je wyłączyć

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

 

Zobacz też: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword