THotPDF.ActivateProtection 속성

 

THotPDF.ActivateProtection

THotPDF

 

맨 위  이전  다음

Determines whether the PDF document is encrypted.

 

Delphi 구문:

property ActivateProtection: Boolean;

 

C++ 구문:

__property bool ActivateProtection;

 

설명

A PDF document can be encrypted to protect its contents from unauthorized access. Set ActivateProtection to true to enable PDF encryption or Set ActivateProtection to false to disable PDF encryption.

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 := [poEdit, poAnnot];  // Disallow editing and annotations
HPDF.ActivateProtection := true;           // Enable PDF security

 

참조: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword