OK. I understand.My requirement actually is: I will go on adding some paragraphs/chunks/phrases to the document.
These elements are of different fonts and sizes.OK, I still understand.
Why would YOU break the page? This happens automagically.There is a requirement that I should break the page when the page doesn't have sufficient number of lines for a text to fit in.
??? This I don't understand ???Something like this: document.setLinesRequired(n);
You can use the constructor with a PageSize to decide the dimensions of your page.
Then you add objects. If they don't fit, a newPage will be triggered.
Bruno
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
