THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Øverst  Forrige  Neste

Angir om PDF-dokumentet er kryptert

 

Delphi syntax:

property ActivateProtection: Boolean;

 

C++ syntax:

__property bool ActivateProtection;

 

Beskrivelse

Et PDF-dokument kan krypteres for å beskytte innholdet mot uautorisert tilgang. Sett ActivateProtection til true for å aktivere PDF-kryptering, eller til false for å deaktivere den

Default value: false

 

Kodeeksempel

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

 

See also: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword