THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Arriba  Anterior  Siguiente

Determines whether the PDF document is encrypted.

 

Sintaxis Delphi:

property ActivateProtection: Boolean;

 

Sintaxis C++:

__property bool ActivateProtection;

 

Descripción

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

 

Ejemplo de código

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

 

Véase también: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword