THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Vrh  Prejšnja  Naslednja

Določa, ali je dokument PDF šifriran

 

Delphi syntax:

property ActivateProtection: Boolean;

 

C++ syntax:

__property bool ActivateProtection;

 

Description

Dokument PDF je mogoče šifrirati, da se njegova vsebina zaščiti pred nepooblaščenim dostopom Nastavite ActivateProtection na true, da omogočite šifriranje PDF, ali ActivateProtection na false, da ga onemogočite

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

 

Glej tudi: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword