vladimirkotulskiy Posted March 24, 2014 Share Posted March 24, 2014 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)); Link to comment Share on other sites More sharing options...
hozawa Posted March 24, 2014 Share Posted March 24, 2014 They're just properties Try setting them in WEB-INFclassesjasperreports.propertiesExample:net.sf.jasperreports.export.pdf.encrypted=true Link to comment Share on other sites More sharing options...
vladimirkotulskiy Posted March 24, 2014 Author Share Posted March 24, 2014 I am not sure how to set PdfWriter.AllowPrinting permission in this file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now