pumaking Posted June 13, 2012 Share Posted June 13, 2012 Hi,because some of our reports become quite huge when exporting to PDF, I want to compress the PDFs that are exported.I tried to create a report property "net.sf.jasperreports.export.pdf.compressed" with the value "true" but that doesn't work.http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.export.pdf.compressedHow can I achieve that the exported PDFs are compressed by Jasperserver? Link to comment Share on other sites More sharing options...
Raphaël Peguet Posted June 15, 2012 Share Posted June 15, 2012 Hi pumaking ,How did you "create" the property?I know 2 ways for doing this.Either you add a new line to <jasper_root>/WEB-INF/classes/jasperreports.properties with it or in the report you can add a new property in the Property named properties.In both way I would give the value true or false with no double quote around it. Let me know how it goes Raphael Link to comment Share on other sites More sharing options...
pumaking Posted June 21, 2012 Author Share Posted June 21, 2012 Hi,I created the property in the report as described by you. There I added the property net.sf.jasperreports.export.pdf.compressed with the value true without double qoute. Link to comment Share on other sites More sharing options...
pumaking Posted December 12, 2012 Author Share Posted December 12, 2012 Hi,I still didn't solve the problem. For the reports that I want to get a compressed PDF as export I checked the property and also checked the IReport writes it correctly into the XML. This is the code:It seems to be correct. But when I run the report in Jasperreports server (5.0.0. at the moment) and export it to PDF there's no difference in size.Can anyone help? 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