PdfSecurity
Password Security and PDF encryption.
Version: 8.0 and above
PDF encryption is supported as of version 8.0. The following is necessary to protect your PDF documents generated from
InetSoft? reports.
- You must install a JCE/JCA security provider which follows the Java™ encryption framework. An example is that which is provided by http://www.bouncycastle.org
- You must set the following properties in the onLoad script of your reports. The behavior you will see is closely mapped to the Adobe Document Properties in Adobe/Macromedia 7.0 products.
- docInfo['pdf.password.owner']="owner1"; //owner1 is the owner's password.
- docInfo['pdf.password.user']="user1"; //user1 is the user's password
- docInfo['pdf.permission.add']="false"; //true to have the ability to add/modify. Similar to the Commenting Adobe property
- docInfo['pdf.permission.change']="false"; //true to change the PDF. Similar to Changing the Document and Document Assembly Adobe properties.
- docInfo['pdf.permission.copy']="false"; //true to use Copy in the PDF. Similar to Content Copying or Extraction and Content Extraction for Accessibility Adobe properties.
- docInfo['pdf.permission.print']="false"; //true to enable Printing of the PDF. Similar to Printing Adobe property.
You must use a password property in order for any of the other properties to take effect.
Please reference Appendix A of the Scripting Guide Version 9.0 and above.
--
StephenWebster - 10 Dec 2007