Search code examples
fontsjasper-reportsexport-to-pdf

Indian rupee symbol cannot display in pdf that generated by jasperreports?


I'm using jasperreports-6.0.3 to generate pdf report, but the indian rupee symbol is displayed as empty in the generated pdf file. I tried pdfFontName: Helvetica and pdfEncoding: Cp1252, also tried pdfFontName: Arial and pdfEncoding: Identity-H. Both are not work for me.

The string is displayed correctly in eclipse as:

enter image description here

But in the generated pdf it displayed as:

enter image description here

Is there anyone knows how to solve this issue?


Solution

  • You need to render with a font which supports the Rupee symbol, then it should display. For example Rupee_Foradian.ttf or ITF-Rupee.ttf (Source: Download Rupee Symbol). Embedding that font might be the key to make it portable (so that it shows on any computer). Modern Hindi fonts should support it as well. And the config for this should be: <pdfEmbedded>true</pdfEmbedded>.