THotPDF.ProtectOptions Property

 

THotPDF.ProtectOptions

THotPDF

 

Arriba  Anterior  Siguiente

Determina las opciones de protección del archivo PDF

 

type

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

 

Sintaxis Delphi:

property ProtectOptions: THPDFProtection;

 

Sintaxis C++:

__property THPDFProtectOptions ProtectOptions;

 

Descripción

Utilice ProtectOptions para determinar las opciones de protección permitidas cuando el documento se abre con acceso de usuario

 

Value                Meaning


prPrint                Permite imprimir (bit de permiso 3). Sin prPrint12bit, los visores pueden limitar la impresión a una representación de baja calidad

prModifyStructure        Permite modificar el contenido del documento.

prInformationCopy        Allow copy information about the document.

prEditAnnotations        Allow edit the annotation text.

prPrint12bit                Permite imprimir a plena calidad (bit de permiso 12). Solo surte efecto junto con prPrint; sin prPrint el documento no se puede imprimir en absoluto

prFillAnnotations        Allow add or modify text annotations.

prExtractContent        Permite copiar o extraer de otro modo el texto y los gráficos del documento.

prAssemble                Permite ensamblar el documento (insertar, girar o eliminar páginas y crear marcadores o imágenes en miniatura).

 

Ejemplo de código

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

 

Véase también: ActivateProtection, CryptKeyLength, OwnerPassword, UserPassword