A prerequisite is a license for InterFormNG, which includes the Advanced PDF Module.
In order to encrypt and password protect the PDF files, you need to assign values to these meta data keys, when the PDF file is created:
Meta data key: |
Value: |
pdfProtection.ownerPassword |
<Password> |
pdfProtection.userPassword |
<Password> |
pdfProtection.restrictions |
copy, edit, print |
The first two sets the password for the owner and the user. When you open the PDF file you will be prompted for a password. If you type in the owner password the PDF file will be opened with full rights.
pdfProtection.restrictions can be assigned to these values (Case sensitive):
<Blank> |
The user password gives full access. |
copy |
Copy of text in the PDF is not allowed. |
edit |
Edit/changes of the PDF is not allowed. |
Print of the PDF is not allowed. |
You can combine multiple restrictions delimited with a comma.
If you do not assign a value to the user password or if the user password is blank, then the PDF file will NOT be encrypted.