----- Original Message ----- From: "David Powell" <[EMAIL PROTECTED]> To: <itext-questions@lists.sourceforge.net> Sent: Sunday, April 08, 2007 4:20 PM Subject: [iText-questions] Using PdfSignatureAppearance.fitText(...) withconverted values
>I have a list of words and the coordinates (i.e. llx,lly, urx, ury) of > the position of each word in the PDF. The coordinate values are specified > at > a resolution of 1200 PPI. I converted the coordinate values to PDF > default resolution of 72 PPI using the formula: convertedValue72ppi = > (72/1200) * coordinateValue1200ppi. > > Now when I attempt to use PdfSignatureAppearance.fitText(...) method to > get > the best font size for the text so that it would fit exactly in its > coordinate Rectangle, the method is returning a considerable smaller font > size than expected. I change the 'runDirection' argument but it has no > effect on the returned font size. > > Can anyone say what I am doing incorrect? No idea, you didn't show any code. > What is the 'runDirection' > argument used for? > That's for Arabic and Hebrew (and Urdu and Farsi and other right-to-left scripts). Paulo > -- > Regards, > David > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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/