THotPDF.ProtectOptions Property

 

THotPDF.ProtectOptions

THotPDF

 

Góra  Poprzedni  Następny

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;

 

Opis

Użyj ProtectOptions, aby określić opcje ochrony dozwolone po otwarciu dokumentu z dostępem użytkownika

 

Value                Meaning


prPrint                Zezwala na drukowanie dokumentu (bit uprawnień 3). Bez prPrint12bit przeglądarki mogą ograniczyć drukowanie do niskiej jakości reprezentacji

prModifyStructure        Zezwól na modyfikowanie zawartości dokumentu

prInformationCopy        Allow copy information about the document.

prEditAnnotations        Allow edit the annotation text.

prPrint12bit                Zezwala na drukowanie w pełnej jakości (bit uprawnień 12). Działa tylko razem z prPrint; bez prPrint dokumentu nie da się w ogóle wydrukować

prFillAnnotations        Allow add or modify text annotations.

prExtractContent        Zezwól na kopiowanie lub inne wyodrębnianie tekstu i grafiki z dokumentu

prAssemble                Zezwól na składanie dokumentu (wstawianie, obracanie lub usuwanie stron oraz tworzenie zakładek lub miniatur)

 

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

 

Zobacz też: ActivateProtection, CryptKeyLength, OwnerPassword, UserPassword