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

Reply via email to