Hi all, I need to put a JFreeChart inside a PdfPTable. Is this possible?
I currently do it with a graphics object (see below) and it works fine, but a table would be so much more elegant, and so much easer to move things on the page and putting them one after another... PdfTemplate chart = contentByte.createTemplate(WIDTH-20, HEIGHT); Graphics2D g2d1 = chart.createGraphics(WIDTH-20, HEIGHT); Rectangle2D r2d1 = new Rectangle2D.Double(0, 0, WIDTH-20, HEIGHT); ChartsManager cm = new ChartsManager(); JFreeChart jFreeVisitorsLarge = cm.getChart(...); jFreeVisitorsLarge.draw(g2d1, r2d1); contentByte.addTemplate(visitorsChart, LEFT_CRT1-10, OVERVIEW_DIST_FROM_BOTTOM-147); g2d1.dispose(); Any ideas? Thanks, Eddy -- View this message in context: http://itext-general.2136553.n4.nabble.com/JFreeChart-inside-a-table-tp3205912p3205912.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
