I am attempting to add multiple images to a PdfTemplate. The images are from
JFreeCharts. I was following the scenario
...
PdfContentByte cb = m_writer.getDirectContent();
...
JFreeChart chart1 = ...
JFreeChart chart2 = ...
PdfTemplate tp = cb.createTemplate(graphWidth,graphHeight);
Graphics2D g2d = tp.createGraphics(graphWidth,graphHeight,new
DefaultFontMapper());
Rectangle2D r2d = new
Rectangle2D.Double(0,0,graphWidth,graphHeight);
predBetaChart.draw(g2d,r2d);
ImgTemplate predBetaGraphImg = new ImgTemplate(tp);
m_document.add(predBetaGraphImg);
... so far so good
But when I attempt to add more than one image I just get the one. I am
missing some piece of knowledge about how to draw multiple images and add
them to the template .My apologies in advance for not understanding some
obvious concept. But I have searched and searched and already have no hair.
--
View this message in context:
http://www.nabble.com/Pdf-Template-adding-multiple-images-tp24536203p24536203.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
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/