Bruno, I tried a couple of different variations of using the chunk.setNewPage() method in my code, but I was not able to achieve the desired effect. I actually ended up with the new section headings at the bottom of pages for all but the very first section containing a chart. Just in case I wasn't clear on this before, the newPage() method works fine until I start inserting images in the document. The first part of the document contains a number of tables containing only text.
Thanks, Kim -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruno Sent: Tuesday, July 08, 2003 9:07 AM To: Kim Cc: [EMAIL PROTECTED] Subject: RE: [iText-questions] newPage() and images Quoting Kim <[EMAIL PROTECTED]>: > I have included the code (sorry it isn't exactly short) I didn't read your entire code sample, I just saw that you are adding images to chapters/sections. Of course the document only knows of these images as soon as the chapters/section are added. My first guess is that you are triggering newPage() on an empty document. Please try this workaround: http://article.gmane.org/gmane.comp.java.lib.itext.general/2518/match=chunk+ newpage Chunk chunk = new Chunk (""); chunk.setNewPage(); section.add (chunk); (I see I used a Paragraph in the mail-archive, but it should work with a Chunk only too.) If this doesn't work, please post the question again and I will dig deeper into your code sample. br, Bruno ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
