Op 21/03/2012 15:55, Zoran Stojanovic schreef:
> I do not want to waste time with you.

In spite of your utter rudeness, I've looked at your example.

The behavior you describe is documented. It's caused by the fact that 
the rules of "what is the baseline of a text field" have changed 
in-between versions of Acrobat. What you see when a field doesn't have 
focus, is the appearance created by iText. When you click the field, you 
see the appearance created by Adobe Reader (in your case, Adobe Reader 
X, although your file was created with Acrobat 7).

There are two ways to work around this problem.

Either you use the method setExtraMargin() to compensate for the 
difference. With setExtraMargin(), you can tell iText to create 
appearances with an offset of your choice. Of course: you need to choose 
that offset yourself based on the version of Adobe Reader you want the 
fields to match with.

Or you tell iText NOT to create appearances. Look for a method 
setGenerateAppearances() and set it to false. This way, the appearance 
of every field will be created by Adobe Reader. There won't be any other 
appearance, so you won't see the appearance change.

As for your attitude, I feel sorry for you.
It must be very hard to be stupid.
In theory.
In practice, it's often not hard enough...

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
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