码迷,mamicode.com
首页 > 其他好文 > 详细

Displaying East Asian Characters in Report PDF Output

时间:2015-04-08 23:16:06      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:

 

In order to correctly display East Asian Characters such as Chinese and Japanese in report PDF output, user needs to make sure:

  • Use a font type that is capable of displaying East Asian characters. User can download and use Arial Unicode font jar for this purpose.
  • Put the font jar file in your application class path so that JVM can pick it up and use the font when report PDF output is generated. In iReport Designer, it needs to be added to the classpath. For JasperReports Server, it needs to be placed under japserserver-pro/WEB-INF/lib directory.
  • It is important to understand that the font jar file is needed for both JasperReports Print object creation and report export process. If users use their application to run report to get JasperReports print object through JasperReports Server web services request and do report export in their application, they need to make sure the font jar is in their application JVM.
  • In report template, use

    fontName="Arial Unicode MS" pdfFontName="Arial Unicode MS" pdfEncoding="Identity-H"

Please download the zip file for Arial Unicode font jar and a sample report template and its PDF output to demonstrate this.

NOTE: This article only applies to regular SQL query based report. For AdHoc report font issue, users will have to apply customization to AdHoc report theme templates and other UI components to make it work in both AdHoc report unit and in its Designer. We recommend users to engage Jaspersoft Professional Services for assistance for issues involving complex customization efforts.

(TTC/24775)

Displaying East Asian Characters in Report PDF Output

标签:

原文地址:http://www.cnblogs.com/jayzee/p/4403848.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!