Op 1/03/2011 1:10, mrangnekar schreef: > Is there a way we can determine if a text can fit into textfield box in PDF? There are methods to get the coordinates of fields. There are methods to measure the length of Strings. Combine both and you can determine if a text fits.
> We are using font-size 12pt. I have a requirement where I am not supposed to > change the font size and display text in another are if it is bigger. How do > I determine ahead if the text is bigger to fit it? Pls repl There are alternatives: you could set the font-size to 0, in which case iText does the work for you. ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText® is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php