There's some code in iText that does precisely this.  Look in the
TextField source
<http://itext.svn.sourceforge.net/viewvc/itext/trunk/itext/src/main/java
/com/itextpdf/text/pdf/TextField.java?revision=4784&view=markup>   for
appearance generation when the font size is set to zero, starting on
line 213 for multiline text, or on 247 for single-line text.
 
 
--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 
Autonomy Corp., an HP Company
 


________________________________

        From: Costa Basil [mailto:[email protected]] 
        Sent: Wednesday, October 12, 2011 10:39 AM
        To: [email protected]
        Subject: [iText-questions] shrink text to fit rectangle
        
        
        What is the best way to shrink a text to fit a given rectangle
on a page?
        

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) 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

Reply via email to