Jump to content

PDF Export Parameters in Jasperserver 4.50


pumaking

Recommended Posts

 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.compressed

How can I achieve that the exported PDFs are compressed by Jasperserver?

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

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

  • 5 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...