THotPDF.UserPassword 속성

 

THotPDF.UserPassword

THotPDF

 

맨 위  이전  다음

Determines document user password.

 

Delphi 구문:

property UserPassword: AnsiString;

 

C++ 구문:

__property AnsiString UserPassword;

 

설명

Correct user password로 document를 열거나 user password가 없는 document를 열면 document의 encryption dictionary에 지정된 user access permission에 따라 추가 operation을 수행할 수 있습니다

 

User가 user password가 있는 encrypted document를 열려고 하면 viewer application은 password를 요청해야 합니다. 두 password 중 하나를 올바르게 제공하면 user는 document를 열고 화면에 표시할 수 있습니다. Document에 user password가 없으면 password가 요청되지 않습니다

 

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

 

참조: ActivateProtection, CryptKeyLength, OwnerPassword, ProtectOptions