CMDBuild Forum

Problem with font display when I press Print as PDF

Dear @All ,
I used version openmaint 3.1.1 , run with OS win2012 Std và PostgreSQL 9.5.

I have the problem with font display when I press Print as PDF or view standard pdf then both is not correct fonts .
such as 02 pictures as:

MR_01 PrintasPDF

Can you help me solve this problem ?

Thank you very much !

Hi, can you be more precise? What is the output you are expecting?

Thank for review !

Output: My Report use Print as PDF.
Precise: My reports do not correctly display unicode fonts. It broke the font.

I solved the font problem and shared it with you.
Solutions to fix:

  • Using version: jasperreports-6.2.1.jar
  • Extract the Jar file and seek to the default.jasperreports.properties files
  • Edit files and seek to the #Font settings tag:

Font settings

net.sf.jasperreports.default.font.name = DejaVu Sans
net.sf.jasperreports.default.font.size = 9
net.sf.jasperreports.default.pdf.font.name = DejaVu Sans

  • Complie jar with command:
    D: \ Jar \ jasperreports-6.2.1> “D: \ Program Files \ Java \ jdk1.8.0_231 \ bin \ jar” -cvf jas
    perreports-6.2.1.jar.

  • Finally: Copy jar to webapps directory \ openmaint \ WEB-INF \ lib and restart Tomcat Server.