Save as PDF, SVG

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Jerome

Save as PDF, SVG

Post by Jerome » Thu Jun 20, 2002 1:15 pm

With which class can i save my charts in *.pdf and *.svg ?
Have i to use iText library ?

In Jfreechart 0.9.1, there's ChartUtilities, bun't you can only save it in *.png or *.jpeg.


Jerome

David Gilbert

Re: Save as PDF, SVG

Post by David Gilbert » Thu Jun 20, 2002 2:39 pm

For PDF you need to use iText. There is a (free) document you can download from the project page on SourceForge that describes how to do it:

http://sourceforge.net/projects/jfreechart

Go to the downloads section and grab the file jfreechart2pdf-v2.pdf.

SVG uses Batik:

http://xml.apache.org/batik

This is described in the JFreeChart "premium" documentation, available for purchase from this site.

Regards,

DG.

Locked