Hello thanks first.

Could you please tell me how you found the " box size in the annotation 
array is [104.25,13.87] and in the appearance is [50,25] ", and more
importantly
to me is,  how to correctly set the box size so that the text is not
stretched ?
I checked the iText Java API,  it seems AcroFields.setField() is used to set
field value, not field properties such as font. 
Thanks a lot, iText is sort of confusing to me at this stage of learning.
:-) 


Paulo Soares wrote:
> 
> There's more than meets the eye and it's not about the font. The font is 
> Helvetica bold but is stretched wide because the box size in the
> annotation 
> array is [104.25,13.87] and in the appearance is [50,25]. I set this field 
> using iText and the result was correct. Whatever set the field originally 
> was not iText or it was something other than AcroFields.setField().
> 
> Paulo
> 
> ----- Original Message ----- 
> From: "1T3XT info" <[EMAIL PROTECTED]>
> To: "Post all your questions about iText here" 
> <[email protected]>
> Sent: Monday, April 28, 2008 6:57 PM
> Subject: Re: [iText-questions] need help on TextField font
> 
> 
>> johniText wrote:
>>> On my machine the weired thing is when this pdf is opened, the
>>> font is not what I set in the java code. But if you click the text
>>> and then do some modification to the text, then the font changes
>>> to be what I set in my java code.
>>
>> This doesn't happen on my PC!!!
>>
>>> My question is , why Adobe reader
>>> knows the correct font only after I click the text and do some change
>>> to it ?  Is there any thing I can do to make Adobe reader use the
>>> correct font when the pdf file is opened, not wait until I click it and
>>> do some change to it ?  Thanks a lot.
>>
>> Embed the font!!!
>> Please read the answer that have already been given.
>> You probably have the font you expect on your machine
>> and Adobe finds it when generating the appearance.
>> But this doesn't happen when people don't have the
>> font on their PC.
>>
>> Really, there's nothing weird about it. Please read
>> the answers that have already been given. THIS IS NOT
>> A PROBLEM. THIS IS TO BE EXPECTED. AS LEONARD SAYS:
>> THIS IS ALL IN ACCORDANCE WITH THE ISO!!!
>> -- 
>> This answer is provided by 1T3XT BVBA
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Do you like iText?
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Or leave a tip: https://tipit.to/itexttipjar
> 
> 

-- 
View this message in context: 
http://www.nabble.com/need-help-on-TextField-font-tp16851001p16952512.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to