THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Topo  Anterior  Próxima

Determina se o documento PDF está criptografado.

 

Sintaxe Delphi:

property ActivateProtection: Boolean;

 

Sintaxe C++:

__property bool ActivateProtection;

 

Descrição

Um documento PDF pode ser criptografado para proteger o conteúdo dele contra acesso não autorizado. Set ActivateProtection como true para habilitar a criptografia do PDF, ou defina ActivateProtection como false para desativar a criptografia do PDF.

Default value: false

 

Exemplo 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

 

See also: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword