Jump to content
We've recently updated our Privacy Statement, available here ×

Chienese character not displaying correctly in the PDF report


Sachin Singh

Recommended Posts

while generating report in PDF format using Jasper engine, I get strange character in the output pdf file( Character encoding issue ). It is generating the Chinese characters in HTML and Excel formats properly. To display Chinese character properly in the PDF file I am using  ‘Arial Unicode MS’ as pdfFont and  pdfEncoding as ‘Identity-H (Unicode with horizontal writing)’.I have also tried using font extension as mentioned in the almost all tutorials but nothing seems to be working.Appriciate if someone can provide link to a useful tutorial on this.

Link to comment
Share on other sites

  • 8 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

You are only allowed to use the Adobe 14 that come with PDFs

 

Since Jasper doesnt license fonts you would have to make sure you have a proper server liecnse to use fonts outside of print use.

 

To use Arial Unicode or any Microsoft fonts you have to contact Monotype Imaging.It would be an IP infringment of the EULA if you are using these fonts without a liecnse.

 

Jasper only provides open source fonts with limited coverage

 

 

Link to comment
Share on other sites

  • 10 months later...

2. add this jar in 2 places - 

a) webapps-jasperserver-WEBINF-lib (add here) 

b) in Ireport u need to add in classpath. (tools-options-classpath)

3.set font name as "Arial Unicode MS" and keep same property set in ur xml 

 

<font fontName="Arial Unicode MS" size="12" isBold="true" pdfFontName="Arial Unicode MS" pdfEncoding="Identity-H" isPdfEmbedded="true"/>

 

4. restart ur jasperserver.

5. restart ur ireport.

 

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