THotPDF.OwnerPassword Property

 

THotPDF.OwnerPassword

THotPDF

 

先頭  前へ  次へ

Determines document owner password.

 

Delphi syntax:

property OwnerPassword: AnsiString;

 

C++ syntax:

__property AnsiString OwnerPassword;

 

説明

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

 

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, ProtectOptions, UserPassword