I was using iText 1.2 a few years back and am now trying to upgrade my code to use 5.0.
I'm looking at an existing program that used iText 1.2 and it makes use of method called fitsPage() to make sure that a given paragraph will fit on a given page before attempting to write it; if it doesn't fit, it does a page break and then writes it on the new page. Looking through the 5.0 API, I don't see fitsPage() anywhere, including as a deprecated method, so I have no idea what replaces it or even if it is needed any more. (Maybe the code automatically moves the paragraph to a new page if it isn't going to fit.) Also, in 1.2, I see that you could set the color of a Font when you instantiate it but now the constructor does not allow you to specify the color. How is that done now? -- Rhino ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php 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/