PROTECT

Top  Previous  Next

Syntax

 

protect [print] [,annotate] [,extract] [,modify] [,password "password" | {expr}] [, owner "password" | {expr}] [,128]

 

Description

 

Without the protect command, UnForm generates a standard PDF document that can be opened, viewed, printed, and modified by a user.  This suffices for most business documents, but if an application requires protection of the PDF contents, then this command can be used.  It adds encryption and protection to a PDF document.

 

By default, only viewing access is provided to users.  Additional access can be granted by including the following options:

 

print adds the ability to print the document.

 

annotate adds the ability to add text annotations and fill in form fields.

 

extract adds the ability to copy text or graphics from the document for pasting into other applications.

 

modify adds the ability to modify document contents.

 

password "xxx"|{expr} sets user password required for opening document

 

owner "xxx"|{expr} sets owner password.  If the owner password is used to open a document, Acrobat will allow modification to document permissions. Note an owner password won't automatically enable restricted options. Instead, it only allows changing of those permissions and saving of those new settings.

 

128 turns on 128-bit encryption, which is much stronger than the default 40-bit encryption.

 

Password and owner expressions are interpreted at the start of the job, immediately after the prejob code block is executed; therefore only page one data, or variables defined in the prejob code block, are available for use.

 

 

Drivers: PDF only