Sachin Singh Posted May 3, 2013 Share Posted May 3, 2013 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 More sharing options...
vsicarbon Posted January 27, 2014 Share Posted January 27, 2014 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 More sharing options...
jaspersoft123 Posted December 8, 2014 Share Posted December 8, 2014 1. download and use Arial Unicode font jar - https://community.jaspersoft.com/sites/default/files/files/Report24775-eastAsian.zip 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 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