THotPDF.ProtectOptions Property

 

THotPDF.ProtectOptions

THotPDF

 

Top  Previous  Next

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;

 

Description

Usa ProtectOptions per determinare le opzioni di protezione consentite quando il documento viene aperto con l'accesso utente.

 

Value                Meaning


prPrint                Consente la stampa (permission bit 3). Senza prPrint12bit, i viewer possono limitare la stampa a una rappresentazione di bassa qualità.

prModifyStructure        Consente di modificare il contenuto del documento.

prInformationCopy        Allow copy information about the document.

prEditAnnotations        Allow edit the annotation text.

prPrint12bit                Consente la stampa a piena qualità (permission bit 12). Fa effetto solo insieme a prPrint; senza prPrint il documento non si può stampare affatto.

prFillAnnotations        Allow add or modify text annotations.

prExtractContent        Consente di copiare o comunque estrarre testo e grafica dal documento.

prAssemble                Consente di assemblare il documento (inserire, ruotare o eliminare pagine e creare segnalibri o miniature).

Example di codice

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

Vedi anche: ActivateProtection, CryptKeyLength, OwnerPassword, UserPassword