Harri T. wrote: > If I replace the line > > cb.addTemplate(page1, 1, 0, 0, 1, 0, 0); > > with this line > > document.add(Image.getInstance(page1));
With document.add() iText will try to respect the margin. In your case, you have implicit margins of 36pt. In other words: page1 wrapped inside an image doesn't fit the space that is available. You could avoid this by doing this: Image img = Image.getInstance(page1); img.setAbsolutePosition(0, 0); document.add(img); > the text content is displayed on the next page. Can a Paragraph object > be layered over an Image object somehow? Of course, just read the book! Either you add the text on top of the image with the ColumnText object and/or showTextAligned(). Or you add the image UNDER the text by replacing writer.getDirectContent(); with writer.getDirectContentUnder(); Reading your initial question, I think that's what you really want. I'm always surprised when people overlook the obvious. -- 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/