THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Haut  Précédent  Suivant

Détermine si le document PDF est chiffré.

 

Syntaxe Delphi :

property ActivateProtection: Boolean;

 

Syntaxe C++ :

__property bool ActivateProtection;

 

Description

Un document PDF peut être chiffré pour protéger son contenu contre les accès non autorisés. Définissez ActivateProtection à true pour activer le chiffrement PDF, ou ActivateProtection à false pour le désactiver.

Default value: false

 

Exemple de code

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

 

Voir aussi: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword