THotPDF.ActivateProtection Property

 

THotPDF.ActivateProtection

THotPDF

 

傳回頂部  上一頁  下一頁

Determines whether the PDF document is encrypted

 

Delphi 語法:

property ActivateProtection: Boolean;

 

C++ 語法:

__property bool ActivateProtection;

 

說明

PDF 文件可以加密,以保護內容不被未經授權的存取。將ActivateProtection 設為 true 可啟用 PDF 加密;設為 false 則停用 PDF 加密

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

 

請參閱: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword