Jo Voordeckers wrote:
> Hi,
> 
> After googling some more I discovered that I was using an unsupported 
> old version (unfortunately the newest version on Maven central, which is 
> confusing).
> 
> So now I've tried this with iText 5.0.3 as well but I experience the 
> same problem.
> Is what I'm trying to do unsupported, or is there a better approach for 
> this layout requirement?

The keeptogether functionality isn't documented in the book, and I 
didn't even know it was still in the newest releases. It's eligible for 
removal. If you want to take control over what is added on which page, I 
suggest using alternatives.

Note that keeptogether was wrapping the paragraph inside a table with 1 
column and 1 row that had the option not to split rows.

You can gain more control by using ColumnText.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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/

Reply via email to