THotPDF.ProtectOptions Property

 

THotPDF.ProtectOptions

THotPDF

 

先頭  前へ  次へ

Determines PDF file protection options.

 

type

THPDFProtection = (prPrint, prModifyStructure, prInformationCopy, prEditAnnotations, prPrint12bit, prFillAnnotations, prExtractContent, prAssemble);

 

Delphi syntax:

property ProtectOptions: THPDFProtection;

 

C++ syntax:

__property THPDFProtectOptions ProtectOptions;

 

説明

document が user access で開かれたときに許可される protection options を指定するには ProtectOptions を使用します

 

Value                Meaning


prPrint                印刷を許可します(権限ビット 3)。prPrint12bit がない場合、ビューアは印刷を低品質の表現に制限することがあります

prModifyStructure        ドキュメントの内容の変更を許可します

prInformationCopy        Allow copy information about the document.

prEditAnnotations        Allow edit the annotation text.

prPrint12bit                フル品質での印刷を許可します(権限ビット 12)。prPrint と一緒に指定したときにのみ効果があり、prPrint がないとドキュメントはまったく印刷できません

prFillAnnotations        Allow add or modify text annotations.

prExtractContent        ドキュメントからのテキストやグラフィックスのコピー、その他の抽出を許可します

prAssemble                ドキュメントの組み立て(ページの挿入・回転・削除、しおりやサムネイル画像の作成)を許可します

 

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

 

関連項目: ActivateProtection, CryptKeyLength, OwnerPassword, UserPassword