bisoa wrote: > Is there any way we can do the PdfWriter.fitsPage() for RTF > documents? It looks like only way we can do is to find out > numbers of rows a page can contain and count them!
The problem with RTF (as opposed to PDF) is that RTF isn't a Page Description Language (PDL). With PDF you know in advance where your content is going to be rendered. With RTF, the viewer application makes plenty of decisions for you, pagination being one of them. Because these decisions are postponed till the moment the document is rendered, you can't have a fitsPage() on the moment it is created. best regards, Bruno ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
