THotPDF.ProtectOptions Property

 

THotPDF.ProtectOptions

THotPDF

 

Topo  Anterior  Próxima

Determina as opções de proteção do arquivo PDF.

 

type

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

 

Sintaxe Delphi:

property ProtectOptions: THPDFProtection;

 

Sintaxe C++:

__property THPDFProtectOptions ProtectOptions;

 

Descrição

Use ProtectOptions para determinar as opções de proteção permitidas quando o documento é aberto com acesso de usuário.

 

Valor                Significado


prPrint                Permite imprimir (bit de permissão 3). Sem prPrint12bit, os viewers podem limitar a impressão a uma representação de baixa qualidade.

prModifyStructure        Permite modificar o conteúdo do documento.

prInformationCopy        Permite copiar informações sobre o documento.

prEditAnnotations        Permite editar o texto das anotações.

prPrint12bit                Permite imprimir em qualidade total (bit de permissão 12). Só tem efeito junto com prPrint; sem prPrint o documento não pode ser impresso de forma alguma.

prFillAnnotations        Allow add or modify text annotations.

prExtractContent        Permite copiar ou de outra forma extrair texto e gráficos do documento.

prAssemble                Permite montar o documento (inserir, rotacionar ou excluir páginas e criar bookmarks ou miniaturas).

 

Exemplo 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

 

See also: ActivateProtection, CryptKeyLength, OwnerPassword, UserPassword