THotPDF.UserPassword Property

 

THotPDF.UserPassword

THotPDF

 

先頭  前へ  次へ

Determines document user password.

 

Delphi syntax:

property UserPassword: AnsiString;

 

C++ syntax:

__property AnsiString UserPassword;

 

説明

正しい user password で document を開く場合、または user password のない document を開く場合、document の encryption dictionary に指定された user access permissions に従って追加 operations を実行できます

 

user password を持つ encrypted document を user が開こうとした場合、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