Simon, Peter wrote:
> The Pdf we generate contains several components. That's why I added a cell 
> and cell event,
> to know the position where the graphics has to be added.
> In the cell event I create a PdfTemplate with the size of the reactangle 
> (parameter of cellLayout).
> From that PdfTemplate I get the graphics with the createGraphics method.

That wasn't clear in your initial question, and it's an awkward design.

> After getting the graphics from PdfTemplate I call a paint method on our 
> graphics tool to paint the graphics.
> 
> I even tried it with iText 2.1.7 which I think is the actual version and had 
> the same problem.

most of these problems are caused by people forgetting to call the 
dispose() method.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

Reply via email to