Thursday, January 15, 2015

Use Custom Fonts When Exporting Reports from JasperReports & JasperServer to PDF

What's New in this Release?

We are pleased to announce the long awaited version of Aspose.Pdf for JasperReports 1.4.0. It provides the capability to use custom fonts when exporting JasperReports to PDF format. In order to use custom fonts, we added setTruetypeFontDirectoryPath(String) method to JrPdfExporter class which is used to specify the path of the folder where custom fonts are placed. In order to access an appropriate font, correct font name should be provided, and in order to use Bold/Italic/BoldItalic variant of these fonts, respective font must be present. For example for the font “Consolas” it is consola.ttf, consolab.ttf, consolai.ttf, consolaz.ttf. The font can be configured in *.jrxml file as < font fontName="Consolas"> or can be replaced by using fontMap. The latest release is synchronized with latest JasperReport version 5.6.0 and JasperReports v.5.6.1. For compatibility with new versions of JasperReports, we have created a new package named com.aspose.pdf.jr5_6_0. However the name of the package must be considered when setting up the connection library in Jasperreport-Server in files applicationContext.xml and viewReportBeans.xml. Aspose.Pdf for JasperReports offers exciting report features such as tables, charts and images and enables you to export reports from JasperReports and JasperServer to Portable Document Format (PDF). In this release, there have been other fixes related to component. Below is the list of main new and enhanced features added in this release
  • Use of custom fonts
  • Synchronization with JasperReports-5.6.0 and higher
  • Exceptions resolved ,with jasperreports-5.6.0
Overview: Aspose.Pdf for JasperReports

Aspose.Pdf for JasperReports is a flexible Java component designed to export reports from JasperReports and JasperServer to Portable Document Format (PDF) with high fidelity and identical to the report design. Its engine supports many chart layouts, such as Pie, Bar, Stacked Bar, Line, Area, Scatter Plot, Bubble, and Time series. All report features, including charts, tables, images and more, are converted to PDF with the highest degree of precision. It also supports the .jrxml specification

No comments:

Post a Comment