8.7 Adding PDF Security

To add security encryption to a PDF file exported by Style Intelligence, use the following script in the onLoad handler of the report.

docInfo.pdf.password.owner = '{owner_password}';

// owner_password provides owner access to document

 

docInfo.pdf.password.user = '{user_password}';

// user_password provides user access to document

 

docInfo.pdf.permission.print = true/false;

// provides the ability to print

 

docInfo.pdf.permission.copy = true/false;

// provides the ability to copy from the document

To use encryption, you must have an implementation of the Java Cryptography Extension on your classpath. Sun provides a default implementation with the JRE. To use this, add the {JAVA_HOME}/jre/lib/security folder to your classpath. See PDF Security Provider Subsets, in Report Scripting, for more information.

<< Supporting Unlisted CJK Fonts © 1996-2013 InetSoft Technology Corporation (v11.4) 8.8 Ad Hoc >>