fshih Posted February 13, 2009 Share Posted February 13, 2009 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 More sharing options...
ktalarico Posted February 17, 2009 Share Posted February 17, 2009 I have same exact problem and have been searching forum Link to comment Share on other sites More sharing options...
ktalarico Posted February 18, 2009 Share Posted February 18, 2009 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 More sharing options...
fshih Posted February 19, 2009 Author Share Posted February 19, 2009 Thanks for the great information. Did you copy fonts to jre/lib/fonts on the production machine? Or can it be done on the development machine where the war file is generated? 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