I have figured out how to add a JPanel into a PDF Document.

 

However, I have not figured out how to add the new Graphics2D object

into the flow of an existing document.

 

This just adds it to the entire page:

Graphics2D g2d = cb.createGraphics(PageSize.A4.width(),PageSize.A4.height());

 

Do I need to convert the JPanel to an Image and then do

document.add(Image)??

 

Thanks

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to