Tuesday, October 13, 2009

Exporting pdf from Jasper (problem with unicode)

In my other post I described how to export from Jasper.

There is potential problem if you need to use unicode fonts.

In order to export Jasper to pdf, you need TrueType font that has all the characters that your exported pdf is going to contain.
I had a lot of trouble to find free font that has all the glyphs I need.
Found it on myfonts.

euro-sans-pro

All you need to write in jrxml file is:

<font pdffontname="myPathToFonts\fontFileName.ttf" pdfencoding="Identity-H">

No comments: