Jaspersoft ireport designer 4.7.0 solution for exporting non-display PDF Chinese Characters

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.