Protect Jasper PDF report by a password

Protected PDF

To do so, just add in the xml file of your report those following lines

<property name="net.sf.jasperreports.export.pdf.encrypted" value="True"/>
<property name="net.sf.jasperreports.export.pdf.128.bit.key" value="True"/>
<property name="net.sf.jasperreports.export.pdf.user.password" value="mySuperPass"/>
<property name="net.sf.jasperreports.export.pdf.owner.password" value="mySuperPass"/>

JasperServer Community 6.0.1
Jaspersoft Studio 6.0.1

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.