THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Inizio  Precedente  Successivo

Determines whether the PDF document is encrypted.

 

Sintassi Delphi:

property ActivateProtection: Boolean;

 

Sintassi C++:

__property bool ActivateProtection;

 

Descrizione

A PDF document can be encrypted to protect its contents from unauthorized access. Set ActivateProtection to true to enable PDF encryption or Set ActivateProtection to false to disable PDF encryption.

Default value: false

 

Example di codice

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

 

Vedi anche: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword