THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Överst  Föregående  Nästa

Avgör om PDF-dokumentet är krypterat

 

Delphi syntax:

property ActivateProtection: Boolean;

 

C++ syntax:

__property bool ActivateProtection;

 

Beskrivning

Ett PDF-dokument kan krypteras för att skydda innehållet mot obehörig åtkomst. Sätt ActivateProtection till true för att aktivera PDF-kryptering, eller sätt ActivateProtection till false för att stänga av den

Default value: false

 

Code Example

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

 

Se även: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword