iReport lacks special character when exporting PDF

Asked

Viewed 341 times

0

I’m using iReport 3.7.4 to generate the reports. In one of the reports, I need to use an arrow, to indicate a step by step. So I found the arrow code in Html Entities &# 10140;, and in the iReport field, I left the Markup as HTML. When I export the report to Word, everything works normal, and the HTML Entities arrows appear.

But when I set to export to PDF, the HTML Entities arrows ( ) that indicate step by step disappear from the report.

Does anyone have any idea how I can solve this ?

➜ = &#10140

  • 1

    This is because the standard source for PDF generation (in linux it is Helvetica) does not accept this character. See this link for supported fonts: http://www.fileformat.info/info/unicode/char/279C/fontsupport.htm

  • It really worked when I changed the font. Thank you very much !

1 answer

1

Following Gustavo Fragoso’s tip, I changed the font to Dejavu Sans, and it worked:

<font fontName="DejaVu Sans" size="11" isBold="false" pdfFontName="" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
  • 1

    I did tests yesterday with this and at the time of generating the java code the pdf was again generated without the character, so I did not answer. This happens there too?

  • When I switched to the Dejavu Sans font, the special character appeared when I generated the PDF.

  • 1

    In iReport, I went to Tools -> Options -> Fonts and saw the ones you had installed there, and the ones you had on the site you passed. And the two are Dejavu Sans and Dejavu Sans Mono. I tested here with these 2 fonts and it worked.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.