THotPDF.ActivateProtection 속성

 

THotPDF.ActivateProtection

THotPDF

 

맨 위  이전  다음

PDF 문서가 암호화되어 있는지 여부를 결정합니다

 

Delphi 구문:

property ActivateProtection: Boolean;

 

C++ 구문:

__property bool ActivateProtection;

 

설명

PDF 문서는 무단 접근으로부터 내용을 보호하기 위해 암호화할 수 있습니다. PDF 암호화를 켜려면 ActivateProtection을 true로 설정하고, 끄려면 ActivateProtection을 false로 설정합니다

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