Ultimately I want to make a PDF report, but I figured that even if I get the graph in JPEG then I can use a JPEG t开发者_开发问答o PDF converter to make it a PDF.
Thanks.
We are using JFreeChart for this. I do not know of other options, but this has served us well.
- Jasper Reports
- iText
- JFreeChart
It is NOT the best idea to "convert" a jpeg to PDF, because the JPEG still contains of pixels then. If you can, do produce vector charts which will look much nicer and produce a smaller PDF.
See these sites:
- http://www.ibm.com/developerworks/xml/library/x-svggrph/
- http://www.jfree.org/jfreechart/index.html (can produce PDF directly)
- http://www.jfimagine.com/order.html (free for non-commercial)
I would prefer JFreeChart, since I used it successfully for years, and it always was stable and reliable.
JFreeChart + Docmosis is a reasonable combo for producing PDFs with images.
精彩评论