Friday, March 21, 2014

Embed fonts into pdf

To embed custom fonts into Jasper Report(iReport) generated PDF file

Steps:

1. Launch iReport, choose Tools->Options->Fonts

2. Click "Install Font" and follow the wizard to install your desired font.

*Remember to tick the option "Embed this font in the PDF document"



3. Select the newly installed font and click the button "Export as extension"

4. Save the export file as JAR file

5. Copy the JAR file to the folder within your application classpath

*I choose to put all the JAR files into $(JRE_HOME}/lib/ext 

No comments:

Post a Comment