THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Sus  Anterior  Următor

Determină dacă documentul PDF este criptat

 

Delphi syntax:

property ActivateProtection: Boolean;

 

C++ syntax:

__property bool ActivateProtection;

 

Descriere

Un document PDF poate fi criptat pentru a-i proteja conținutul împotriva accesului neautorizat. Setați ActivateProtection la true pentru a activa criptarea PDF sau la false pentru a o dezactiva

Default value: false

 

Exemplu de cod

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