Specify Parameters for PDF Securing and Encryption
This command is used to supply a key and parameters for securing and encrypting PDF files which are to be attached as $email_attach files. The parameters are applied to all the attachments with content-type application/pdf in the same FS file, excluding those where the word APPLICATION in the content-type is in upper-case. This command can also be used to secure any PDF file when specified as the KEEP_FAX file type, when the command is included in the same FS file. All these uses require the E-Mail Security license option.
The parameters on this command are used as follows:
|ownerpassword||Contains the PDF owner password to be applied to control the specified permissions.|
|permissions||Contains a string of eight 1 or 0 characters to permit (1) or disallow (0) the following eight actions:|
Print the document
Copy text and graphics from the document
Edit the document
Fill form fields
Copy for use with accessibility features
Assemble the document
Allow full resolution printing.
|Setting the last item to 0 prevents the document from being distilled into a new document. The last four actions only work with 128-bit encryption. If fewer than 8 characters appear in this variable, they are assigned in sequence with absent digits at the end defaulting to 1.|
|strength||Contains a digit from 0 to 3 indicating:|
|1||128-bit RC4 encryption|
|2||128-bit AES encryption (requires Acrobat 7 or later)|
|3||256-bit AES encryption (requires Acrobat 9 or later).|
|ownerpassword||Contains the PDF user or open password required to open the document, if required.|
You may use one of the SECRETx variables for either password, to avoid having to place the passphrase in clear in the FS file. Unlike in an infobox file, this usage of the secret variable cannot currently be authenticated, because authentication would not survive the rewriting of the FS file.
Allow viewing with a password, and printing:
$pdf_secure "xyzzy" "10000000" 1 "@MyViewPassword"
$email_attach faxable.tif application/pdf