You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Randall Parker <ra...@nls.net> on 2000/09/08 19:38:54 UTC

Draw charts other ways and use FOP PDF generation?

I want to use FOP to generate some of my reports. But I also have a need to use some bar and tape charting Java library for doing some pages. Well, is it possible to use some other library to render a 
page and then use the FOP PDF generator class (whatever its called) to take that and generate a PDF file with it?

I'm thinking of using one of these:
   JBChart http://www.hallogram.com/jbchart/ 
   JRefinery http://www.jrefinery.com
   Chart Works http://www.netcharts.com/
   j-tchart http://www.javaside.com/j_tchart.html
   jClass Chart http://www.klgroup.com/jclass/chart/index.html

I want to write my entire reporting system in Java to produce PDF and yet do not expect FOP to have enough functionality to make charting easy enough and fancy enough. 

Does this sound like a crazy idea? It'd kinda unite all output to go thru a single final stage formatting funnel.





Re: Draw charts other ways and use FOP PDF generation?

Posted by Stephan Albers <St...@jcatalog.com>.
Randall Parker schrieb:
> 
> I want to use FOP to generate some of my reports. But I also have a need to > use some bar and tape charting Java library for doing some pages. Well, is it > possible to use some other library to render a
> page and then use the FOP PDF generator class (whatever its called) to take > that and generate a PDF file with it?
> 
> I'm thinking of using one of these:
>    JBChart http://www.hallogram.com/jbchart/
>    JRefinery http://www.jrefinery.com
>    Chart Works http://www.netcharts.com/
>    j-tchart http://www.javaside.com/j_tchart.html
>    jClass Chart http://www.klgroup.com/jclass/chart/index.html

If the libs do not support SVG yet, there are two ways to overcome this:
- export graphics as Gif or Jpeg (support but most libs)
- use the lib to draw on a Graphics2D object and use the 2d-svg tool
from Sun to
  generate SVG

http://www.sun.com/software/xml/developers/2d-svg/
http://www.sun.com/software/xml/developers/svg/java2d-api/

2D-SVG replaces the Standard Graphics2D implementation and instead of
printing to the screen you could print the SVG representation into a
file.
Needs JDK >= 1.2.x

Stephan