Version:Jaspersoft ireport designer 4.7.0
There are manyArticleI want to download itextasian. Jar. In fact, this version already contains this package. Directory: D: \ jaspersoft \ iReport-4.7.0 \ ireport \ modules \ ext
You only need to include this package in clasport's classpath, and then make appropriate settings.
Steps:
1: tools, options, ireport, classpath, add jar, select itextasian in the preceding directory. jar, I even iText-2.1.7.jar together to choose, do not know in the end do not need, Anyway more no harm, interested classmates can try.
2: In a report, such as a static text or text area, select it and set it in the "text properties" group on the property panel:
Font Name:
PDF Font Name: stsong-lightpdf encoding: UniGB-UCS2-H)
PDF embeded: √
Preview and export the PDF display.
3: Don't worry, it's not over yet. Most articles on the Internet are over here, but if you put the report on your website, you will find that, when exporting a PDF file on the website, an error is still reported. No such information as can be found. Solution:
Copy itextasian. jar to web_inf \ Lib and add the package to the Java build path of the project (website. Now, the solution is complete.
========================================================== ======================================
I thought it would end here. In fact, the above part only solves the problem in windows. If you deploy the developed website on a Linux server, you may still encounter the following problems:
Net. SF. jasperreports. Engine. util. jrfontnotfoundexception: font 'body' is not available to the JVM. See the javadoc for more details.
For the solution, refer to my other blog.
PS: Java really hurts.