|
Setting Permissions & Passwords
Creating a secure PDF file via GhostScript
In order to create a secure PDF file (40-bit RC4), a GhostScript upgrade may be required on the PC (GPL GhostScript 8.15 or newer).
The simplest way to set the PDF permissions is by using the GUI dialogs which appears either in the Printfil's configuration window (default permissions), or by creating a PDF file through the preview window (with user intervention)
Default permissions are stored in the SecurePDF entry, in the [Options] section of the Printfil.ini file, as follows:
SecurePDF = Enc_Type | Permissions | Owner_Password | User_Password
All the fields are separated by a pipe "|" char. Only the first one is mandatory (Enc_Type). If the SecurePDF entry is missing, the PDF file will not be encrypted.
Enc_Type
2 (fixed)
Permissions
Document Security can be set with the Permissions flag. Subtract these values from -4 to disable an access.
4 = Print document
8 = Modify contents of document
16 = Copy text and graphics from document
32 = Add or modify text annotations
To allow printing and copying, but disable modifying the content and annotations, the value is -4-8-32 so use -44. To enable all, use -4. To disable all, use -64.
If not specified, all permissions are granted.
Owner_Password
Used for encrypting the file. If not specified "Printfil" will be used
User_Password
If specified, the end user will have to insert a password in order to open the PDF file.
EXAMPLES
SecurePDF=2|-44 - The PDF file will be secured. The end user can only print it or extract its content.
SecurePDF=2|||John Doe - To open the PDF file, the end user will have to insert the John Doe password, then he'll be able to perform any operation to the file.
|