THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Inizio  Precedente  Successivo

Determina se il documento PDF è cifrato.

 

Sintassi Delphi:

property ActivateProtection: Boolean;

 

Sintassi C++:

__property bool ActivateProtection;

 

Descrizione

Un documento PDF può essere cifrato per proteggerne il contenuto da accessi non autorizzati. Imposta ActivateProtection a true per abilitare la cifratura PDF, oppure imposta ActivateProtection a false per disabilitarla.

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

 

Vedi anche: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword