How to set font size in PDF?

0

I am making a report using iReport this is ok, but in the application when generating PDF the font is not the same as the iReport preview, the font type is ok, I would like to know a way to set the font size to be displayed in the PDF.

    
asked by anonymous 01.10.2014 / 23:09

1 answer

1

According to a post on this link, it may be helpful to you: Link export PDF

  

The problem is that IReport uses Java / AWT for assembly and report preview and the PDF generator does not, which forces you to set a specific font for PDF. In version 3.7.1 of IReport these methods are "deprecated" which makes it necessary to create a JAR / Zip library with the fonts used (and create an xml with some settings) and add them to the application's classpath.

     
    

The interesting thing is that version 3.7.1 has a utility to perform this task, through the menu Tools - > Options - > iReport - > Fonts. Just click install font, select Font (and its variations, type Bold, Italic, etc.) and generate the jar / zip file to be added to the classpath.

  
     

From this moment, simply run the application that the report will respect the formatting chosen in the process of generating the PDF. Remember to enable the "embedded pdf" option in the ireport options and if the formatted field has html tags, enable the field option to read TAGS html ...

There is also a topic on this site that might be of interest to you: Change iReport font

    
01.10.2014 / 23:44