Ok, it looks like the entire field data does in fact fit in the field,
so maybe iText is calculating the max font size correctly. Either way,
I need it to calculate smaller so it matches Acrobat...
Any ideas?
________________________________
From: Bordeman, Chris [mailto:[email protected]]
Sent: Friday, May 01, 2009 12:12 PM
To: Post all your questions about iText here
Subject: [iText-questions] When forced,iText Auto font size does not
match Acrobat's calculated size
Hello all. Using iTextSharp 4.1.1.
I'm forcing some acrofields to font size 0 with field flattening like
so:
acrofieldsobj.SetFieldProperty("myfield", "textsize", 0, null);
The problem is after flattening iText seems to have calculated a final
font size considerably larger than if I had instead manually set the
field to "Auto" size using Acrobat (and not called the above method).
The iText calculated font does not fit in the field because the 'tails'
of the text such as the letter 'y' would be outside the field box. In
any case, it needs to match what Acrobat does...
Is there a fix for this?
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
iText-questions mailing list
[email protected]
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/