THotPDF.ProtectOptions Property

 

THotPDF.ProtectOptions

THotPDF

 

ด้านบน  ก่อนหน้า  ถัดไป

กำหนดตัวเลือกการป้องกันไฟล์ PDF

 

ประเภท

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

 

Delphi syntax:

property ProtectOptions: THPDFProtection;

 

C++ syntax:

__property THPDFProtectOptions ProtectOptions;

 

คำอธิบาย

ใช้ ProtectOptions เพื่อกำหนดตัวเลือกการป้องกันที่ได้รับอนุญาตเมื่อเอกสารถูกเปิดด้วยสิทธิ์การเข้าถึงของผู้ใช้

 

Value                Meaning


prPrint                Allow print the document.

prModifyStructure        Allow modify the contents of the document.

prInformationCopy        Allow copy information about the document.

prEditAnnotations        Allow edit the annotation text.

prPrint12bit                Allow print the document (possibly not at the highest quality level, depending on whether bit 12 is also set).

prFillAnnotations        Allow add or modify text annotations.

prExtractContent อนุญาตให้ copy หรือ extract ข้อความและกราฟิกจากเอกสารด้วยวิธีอื่น

prAssemble                Allow assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images).

 

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