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 contra accesos no autorizados. Establece ActivateProtection en true para habilitar el cifrado PDF, o en false para deshabilitarlo

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

 

Ver también: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword