The Pdf we generate contains several components. That's why I added a cell and cell event, to know the position where the graphics hast o 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. So I think I didn't mix java.awt and com.lowagie?!
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. -----Ursprüngliche Nachricht----- Von: 1T3XT info [mailto:i...@1t3xt.info] Gesendet: Freitag, 20. November 2009 08:21 An: Post all your questions about iText here Betreff: Re: [iText-questions] Problem with graphics when printing the PDF Simon, Peter wrote: > Now I had some bugs to fix with drawing Graphics2D. Graphics2D means: java.awt classes. > To draw that graphics I create a PdfPTable with a PdfPCell. PdfPTable and PdfPCell mean: com.lowagie classes. These classes don't mix. There's something wrong in your story. > I'm using iText 2.1.1 Versions that are older than the current version aren't supported on the free mailing list. Support for older versions requires a support contract. -- 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/ ------------------------------------------------------------------------------ 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/