CEMPD / VERDI

This is the repo for the VERDI project, written in java.
GNU General Public License v3.0
16 stars 13 forks source link

Investigate how to output VERDI Plots created in JFreeChart to PDF files #42

Open joellenb opened 8 years ago

joellenb commented 8 years ago

From some types of charts in VERDI, the user can rt-click on the chart and save the chart in selected graphical formats (e.g., PNG, JPG). Can the same functionality be extended to output to PDF format?

joellenb commented 8 years ago

Based on a cursory Internet search this feature may be possible using another library called iText (https://sourceforge.net/projects/itext/files/). Chapter 16 of The JFreeChart Class Library Developer Guide provides some sample code showing how to use JFreeChart with iText, which is a different library. However, the JFreeChart examples are with iText v. 2.1.5, the JFreeChart document recommends evaluating the latest version of iText, and the latest version is 5.5.8.

NOTE: Repast Simphony that is included in VERDI uses iText v2.1.7. We would need to be careful when implementing a different version of iText to make certain that the newer version would work with Simphony.

The JFreeChart documentation includes some caveats related to limitations on fonts.