Kevin Logue wrote:
> Hi
> 
> Sorry I'm new to using iText so my apologies if the below code is an 
> abomination to all things iText.

Try looking at a working example first:
http://1t3xt.info/examples/browse/?page=example&id=286
Then compare it to yours.

>     column.addElement(paraText);
>     column.go();

This doesn't trigger a new page; it just "consumes" as much of content 
in the column as possible. Whatever is left, is still kept in the 
ColumnText object.
I have no idea how i or getNumPage can ever be more than 1. Your code is 
very confusing.

>     if(i+1 < getNumPages()){
>         document.newPage();
I have no idea why there would be any need to reset the top layer.
>         topLayer.reset();
>     }
> }
> document.close();

Please try understanding and adapting the example mentioned above first, 
then come back to the mailing list if you have further questions.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to