THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Vrh  Prethodno  Sljedeće

Određuje je li PDF dokument šifriran

 

Delphi syntax:

property ActivateProtection: Boolean;

 

C++ syntax:

__property bool ActivateProtection;

 

Opis

PDF dokument može biti šifriran kako bi se zaštitio njegov sadržaj od neovlaštenog pristupa. Postavite ActivateProtection na true za uključivanje PDF šifriranja ili na false za njegovo isključivanje

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