Jump to content

1 war file gives different pdf from 2 machines


fshih

Recommended Posts

In my war file, I include my compiled summary.jasper and generate the pdf report using JasperFillManager.fillReport() and JasperExportManager.exportReportToPdf(). 

I got a slightly differnt report with the same war file on 2 different machines, one is Windows running tomcat 6.0.18, the other is Linux running tomcat 6.0.14.   The report from the Linux, some static text fields show partial contents while the report from the Windows machine show the whole contents.  Does anyone has a solution from this problem?

Tentatively I enlarge the width of those clipped static text fields in order to show the whole contents from both machines.  But this is not a good solution.

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

This is the post that provides the solution:

http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=40464

 

We simply copied the windows true type fonts to the jvm (jre/lib/fonts) and restarted Tomcat and it worked.  Must make sure the font name in the report matches the font name in the jvm and it is case sensitive on Linux.

 

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