Aleix Casagolda wrote:
> Hi, I have a question about iText.
>
> I'm generating a pdf with some paragraphs and I need that when one
> paragraph don't fit to a page, the entire paragraph jump to next page,
> so a paragraph is never splitted between two pages.
>
> How can I do it?
>
> Thank you.
Set the keeptogether property on the Paragraph. E.g.
Paragraph p = new Paragraph("I am a paragraph, wooh.");
p.setKeepTogether(true);
Damien
--
Damien Uern
Online Applications Developer
Synect Online Solutions
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/