Search found 23 matches

by gw1500se
Fri Nov 24, 2017 3:07 pm
Forum: JFreeChart
Topic: Adding JFreeChart to Itextpdf in Landscape
Replies: 12
Views: 14854

Re: Adding JFreeChart to Itextpdf in Landscape

Arggg! This is so frustrating. After hours of fiddling with various parameters I am finally getting the chart to display the way I want but no matter what I try I cannot position it. This is my current code: Document document = new Document(PageSize.A4.rotate()); Font titleFont = new Font(FontFamily...
by gw1500se
Thu Nov 23, 2017 4:09 pm
Forum: JFreeChart
Topic: Sizing and Locating a JFreeChart with ItextPDF
Replies: 3
Views: 4872

Re: Sizing and Locating a JFreeChart with ItextPDF

Thanks. I don't know where to go from here but I guess I'll just play with the parameters until something different happens.
by gw1500se
Thu Nov 23, 2017 2:53 pm
Forum: JFreeChart
Topic: Sizing and Locating a JFreeChart with ItextPDF
Replies: 3
Views: 4872

Sizing and Locating a JFreeChart with ItextPDF

I started off with this thread to figure out how to get a chart to display properly in a PDF document using itextpdf. This may be more of an itextpdf question but while I was able to get the chart displayed, I am not able to scale and locate the chart. After some research it seemed like I needed to ...
by gw1500se
Thu Nov 23, 2017 2:18 pm
Forum: JFreeChart
Topic: Adding JFreeChart to Itextpdf in Landscape
Replies: 12
Views: 14854

Re: Adding JFreeChart to Itextpdf in Landscape

Great! Your suggestion got rid of all errors for some reason. I am not getting the chart as I expected. My next hurdle is figuring out how to scale and position the image. But I assume that is an itextpdf issue not a jfreechart issue. Thanks again.
by gw1500se
Wed Nov 22, 2017 5:44 pm
Forum: JFreeChart
Topic: Adding JFreeChart to Itextpdf in Landscape
Replies: 12
Views: 14854

Re: Adding JFreeChart to Itextpdf in Landscape

Thanks but I am still not there yet. I added the suggested imports and changed the 'draw' parameters: Chart.getInstance().getChart().draw(g2d, new com.itextpdf.awt.geom.Rectangle2D.Float(0, 0,sizeX,sizeY)); It didn't help the errors: The method draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D) in...
by gw1500se
Wed Nov 22, 2017 1:53 pm
Forum: JFreeChart
Topic: Adding JFreeChart to Itextpdf in Landscape
Replies: 12
Views: 14854

Re: Adding JFreeChart to Itextpdf in Landscape

The method you suggested is one I tried and could not get to work. The first problem was that my IDE does not like the library 'com.lowagie' and I get all kinds of deprecated warnings. Documentation I found seemed to imply I should not be using that library but rather should use the Maven library in...
by gw1500se
Tue Nov 21, 2017 10:21 pm
Forum: JFreeChart
Topic: Adding JFreeChart to Itextpdf in Landscape
Replies: 12
Views: 14854

Re: Adding JFreeChart to Itextpdf in Landscape

Thanks for the reply. No, it is not a must have it was all I could find that I got to work. Your solution sounds much better. Can you point me to the documentation to accomplish that?
by gw1500se
Tue Nov 21, 2017 4:53 pm
Forum: JFreeChart
Topic: Adding JFreeChart to Itextpdf in Landscape
Replies: 12
Views: 14854

Adding JFreeChart to Itextpdf in Landscape

I've found several suggestions for adding a JFreeChart to my PDF document but I've only gotten one to kind of work. I say "kind of work" because it does not seem to do what I need. I have a timeseries chart, that has been generated from real time sampled data displayed on the monitor from my app, wh...