Hello,

On a single page, I would like to display table (about 10 rows) and pie
chart side by side.
I tried to adjust the width and height.. There is a overlap

Is there a way to divide the page on the left add the table and right add
the corresponding chart.

Any help is appreciated..


                                 document.open();
                                 PdfContentByte cb =
writer.getDirectContent();

                                
document.add(createStatsPieChartTable(tStatsList)); // creates a table..

                    
                                cb.setFontAndSize(bf_helv, 12);
                                float width = 300;
                                float height = 600;
                                

                                PdfTemplate pie = cb.createTemplate(width, 
height);
                                Graphics2D g2d1 = pie.createGraphics(width, 
height);
                                Rectangle2D r2d1 = new Rectangle2D.Double(0, 0, 
width, height);
                                MyCharts.getPieChart(tStatsList).draw(g2d1, 
r2d1);
                                g2d1.dispose();
                                

                                cb.addTemplate(pie, width, height);
                                
                                document.newPage();
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Table-and-Pie-Chart-next-to-each-other-in-a-page-tp2239583p2239583.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to