Hello,
I'm having some issues when exporting a report to pdf with Romanian words.
As you can above, when it is on the Jasper Studio preview mode, the characters appear correctly:
However, when exporting to PDF, the characters are not printed at all:
I've searched many other questions and none of the answers solved my problem. Here's what I've tried so far:
- Change report property: net.sf.jasperreports.export.character.encoding=ISO-8859-1
- Change pdfEncoding on text field to "Cp1252"
- Change pdf font name
- Set pdfEmbeded to true
Can somebody help me on this, please? This is somehow urgent.
Thank you in advance.
Br,
Marques
4 Answers:
You need to use a font that includes glyphs for Romanian characters. The one used in the article example doesn't.
If you don't have a specific font that you want to use, you can use DejaVu Sans which is bundled in jasperreports-fonts.jar (you can get it from https://sourceforge.net/projects/jasperreports/files/jasperreports/Jaspe...).
Regards,
Lucian
Try setting up font extensions.
http://community.jaspersoft.com/wiki/custom-font-font-extension