THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

Atas  Sebelumnya  Berikutnya

Menentukan apakah dokumen PDF dienkripsi

 

Delphi syntax:

property ActivateProtection: Boolean;

 

C++ syntax:

__property bool ActivateProtection;

 

Deskripsi

Dokumen PDF dapat dienkripsi untuk melindungi isinya dari akses tidak sah. Atur ActivateProtection ke true untuk mengaktifkan enkripsi PDF, atau ke false untuk menonaktifkannya

Default value: false

 

Contoh kode

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