How do you convert a JPanel into a PDF ('in memory')?

 

Thanks

 


From: Bill Ensley [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 3:24 PM
To: 'Post all your questions about iText here'
Subject: Re: [iText-questions] Adding a JPanel into the flow of a PDF Document

 

You can use a pdf as an image to insert into the flow of an existing document.

 

Make your JPanel into a PDF in memory and then use that as your image.

 

-Bill Ensley

Bear Printing

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Ewers
Sent: Monday, July 17, 2006 3:20 PM
To: '[email protected]'
Subject: [iText-questions] Adding a JPanel into the flow of a PDF Document

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