Hi, the answer to your question is No and the reason is that RTF is a text-description and not a rendered format. http://itextdocs.lowagie.com/tutorial/rtf/index.php
Mark On Wednesday 27 February 2008, Me Simple wrote: > Hi, > > I am creating a RTF document using IText 2.0.8 version. I am inserting new > RTFtables inside a loop and each RTFTable has variable number of rows. The > default behaviour of iText is if the table height increases(when more rows > are added dynamically) beyond the current page height, table spills over to > new page and remaining new rows are added in new page. > > > Setting tableFitToPage to true, always causes the new table to be created > in a new page. This may leave more space in the document between tables. > > My question is: > 1) Is there way to check if 80% of table fits in the remaining space of > current page, then split the table and fill 80% in current page and > remaining in next page. > > 2) If only 20 or 30 % of the table fits in the remaining space of the > current page, the create the table in the new page. > > Can this behaviour be achieved using iText. Kindly help me as this is a > important requirement in my project. > > Thanks in advance, > SP -- You'll feel much better once you've given up hope. My GPG public key is available at: http://www.room3b.eu/data_box/download?path=%2Fsecurity%2FMarkHall.asc
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/