THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Boven  Vorige  Volgende

Bepaalt of het PDF-document is versleuteld

 

Delphi-syntaxis:

property ActivateProtection: Boolean;

 

C++-syntaxis:

__property bool ActivateProtection;

 

Beschrijving

Een PDF-document kan worden versleuteld om de inhoud tegen onbevoegde toegang te beschermen. Stel ActivateProtection in op true om PDF-versleuteling in te schakelen, of op false om deze uit te schakelen

Default value: false

 

Codevoorbeeld

HPDF.OwnerPassword := 'password';          // Set owner password (required to change security settings)
HPDF.UserPassword := 'user';               // Set user password (required to open the document)
HPDF.ProtectOptions := [poEdit, poAnnot];  // Disallow editing and annotations
HPDF.ActivateProtection := true;           // Enable PDF security

 

Zie ook: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword