THotPDF.ProtectOptions Propiedad

 

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

Use ProtectOptions para determinar qué opciones de protección se permiten cuando el documento se abre con acceso de usuario

 

Valor                Significado


prPrint                Permite imprimir el documento

prModifyStructure        Permite modificar el contenido del documento

prInformationCopy        Permite copiar información sobre el documento

prEditAnnotations        Permite editar el texto de las anotaciones

prPrint12bit                Permite imprimir el documento (posiblemente no con el nivel de calidad más alto, según si el bit 12 también está establecido)

prFillAnnotations        Permite agregar o modificar anotaciones de texto

prExtractContent        Permite copiar o extraer texto y gráficos del documento

prAssemble                Permite ensamblar el documento (insertar, rotar o eliminar páginas y crear marcadores o imágenes de 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

 

Ver también: ActivateProtection, CryptKeyLength, OwnerPassword, UserPassword