« Return to Thread: Form field text shifting after setField?

Re: Form field text shifting after setField?

by Paulo Soares :: Rate this Message:

Reply to Author | View in Thread


----- Original Message -----
From: "Bruno Lowagie" <bruno@...>
To: "kylealger" <kyle.alger@...>
Cc: <itext-questions@...>
Sent: Sunday, February 12, 2006 7:28 AM
Subject: Re: [iText-questions] Form field text shifting after setField?


> kylealger wrote:
>
>>Chris,
>>
>>I am having the same issue as you describe. I've trying to figure out what
>>exactly the underlying issue is and have had no luck. I am using the
>>setFields method, the same as you, and see that the text does seem to
>>shift
>>up or down with no consistency that I can see for direction.  Have you
>>been
>>able to figure a way around this?
>>
> iText generates a default appearance for a textfield.
> When you edit the text field, Adobe Reader creates an appearance.
> The main problem is that Adobe Reader wasn't very consistent in
> the way such an appearance is visualized: it differs from version to
> version.
> iText can't predict what version of Adobe Reader the end-user will be
> using,
> so the default appearance offered by iText is an 'educated guess'.
> For some versions of Adobe Reader ther will be little or no difference;
> for others you will experience that 'shifting behavior'.

And that's why there's AcroFields.setExtraMargin().

Paulo



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

 « Return to Thread: Form field text shifting after setField?