How to configure JRPdfExporterParameter on JasperServer

0

I need to disable copy / paste from the PDF generated using JasperServer.

Please advise how I can set the following parameters.

exporter.setParameter(JRPdfExporterParameter.IS_ENCRYPTED, Boolean.TRUE);
exporter.setParameter(JRPdfExporterParameter.IS_128_BIT_KEY, Boolean.TRUE);
exporter.setParameter(JRPdfExporterParameter.PERMISSIONS,new Integer(PdfWriter.AllowPrinting));

vladimirkotulskiy's picture
Joined: Feb 17 2014 - 11:37pm
Last seen: 6 years 5 months ago

1 Answer:

0

They're just properties Try setting them in WEB-INF\classes\jasperreports.properties

Example:

net.sf.jasperreports.export.pdf.encrypted=true

hozawa's picture
68952
Joined: Apr 24 2010 - 4:31pm
Last seen: 1 year 7 months ago

I am not sure how to set PdfWriter.AllowPrinting permission in this file.

vladimirkotulskiy - 6 years 10 months ago
Feedback
randomness