THotPDF.ActivateProtection プロパティ

 

THotPDF.ActivateProtection

THotPDF

 

トップへ  前へ  次へ

PDF ドキュメントが暗号化されているかどうかを決定します。

 

Delphi 構文:

property ActivateProtection: Boolean;

 

C++ 構文:

__property bool ActivateProtection;

 

説明

PDF ドキュメントは、不正アクセスからコンテンツを保護するために暗号化できます。PDF の暗号化を有効にするには ActivateProtection を true に設定し、無効にするには ActivateProtection を false に設定します。

デフォルト値: false

 

コード例

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

 

See also: CryptKeyLength, OwnerPassword, ProtectOptions, UserPassword