THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Arriba  Anterior  Siguiente

Determina si el documento PDF está cifrado.

 

Sintaxis Delphi:

property ActivateProtection: Boolean;

 

Sintaxis C++:

__property bool ActivateProtection;

 

Descripción

Un documento PDF se puede cifrar para proteger su contenido frente a accesos no autorizados. Establezca ActivateProtection en true para activar el cifrado del PDF o ActivateProtection en false para desactivarlo.

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 := [prPrint, prInformationCopy]; // Allow printing and copying only
HPDF.ActivateProtection := true;           // Enable PDF security

 

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