Re: [iText-questions] need help on TextField font

2008-04-28 Thread 1T3XT info
johniText wrote: > 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] ", For instance with http://www.1t3xt.com/products/rups.php Or you can open the PDF in a text editor and look for the fiel

Re: [iText-questions] need help on TextField font

2008-04-28 Thread johniText
er than AcroFields.setField(). > > Paulo > > - Original Message - > From: "1T3XT info" <[EMAIL PROTECTED]> > To: "Post all your questions about iText here" > > Sent: Monday, April 28, 2008 6:57 PM > Subject: Re: [iText-questions] need help on TextFiel

Re: [iText-questions] need help on TextField font

2008-04-28 Thread johniText
Hello, The code that produced this PDF is in my first post. I think you are right, when Adobe reader opens this PDF, it uses some appearance. But in my code I don't pre-define any appearance at all... If a correctly pre-defined appearance can make Adobe reader display the annotation text using

Re: [iText-questions] need help on TextField font

2008-04-28 Thread Paulo Soares
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" Sent: Monday, April 28, 2008 6:57 PM Subject: Re: [iText-qu

Re: [iText-questions] need help on TextField font

2008-04-28 Thread Leonard Rosenthol
Given that I don't know how you produced this PDF in the first place, I can't really comment specifically. What I see is Acrobat/Reader drawing the pre-defined appearance (/AP/ N) when the file is open. I guess this is what you think is incorrect. If so, whatever program created it did so w

Re: [iText-questions] need help on TextField font

2008-04-28 Thread 1T3XT info
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 questi

Re: [iText-questions] need help on TextField font

2008-04-28 Thread johniText
Hi Leonard, Thanks for your help. Could you please open the PDF I uploaded http://www.nabble.com/file/p16905159/textfield.pdf 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 tex

Re: [iText-questions] need help on TextField font

2008-04-28 Thread Leonard Rosenthol
On Apr 25, 2008, at 4:39 PM, johniText wrote: > I don't understand why the font Arial is used instead font > Helvetica. Helvetica is supposed to be a standard font and supposed > to be available in all PDF applications right ? > No, Helvetica is NOT guaranteed to be available in all PDF applica

Re: [iText-questions] need help on TextField font

2008-04-26 Thread 1T3XT info
johniText wrote: > Let me upload the PDF again: > http://www.nabble.com/file/p16905159/textfield.pdf textfield.pdf Looks OK to me. There's no change in font when I click the text and change it. > I don't understand why the font Arial is used instead font > Helvetica. Helvetica is supposed to be

Re: [iText-questions] need help on TextField font

2008-04-26 Thread johniText
Let me upload the PDF again: http://www.nabble.com/file/p16905159/textfield.pdf textfield.pdf I don't understand why the font Arial is used instead font Helvetica. Helvetica is supposed to be a standard font and supposed to be available in all PDF applications right ? 1T3XT info wrote: > >

Re: [iText-questions] need help on TextField font

2008-04-25 Thread 1T3XT info
johniText wrote: > When I checked the PDF file document properties in Adobe reader, it reads: > Helvetica-BoldOblique >Type: Type 1 >Encoding: Ansi >Actual Font: Arial-BoldItalicMT >Actual Font Type: TrueType I didn't see the PDF (maybe the attachmen

Re: [iText-questions] need help on TextField font

2008-04-25 Thread Leonard Rosenthol
That means you aren't embedding the font and so Acrobat/Reader has to substitute. Leonard On Apr 25, 2008, at 10:42 AM, johniText wrote: > > Dear 1T3XT, > > Thanks a lot for your help. I ran the code you provided, and it > produced the exact behaviour as I described. I attached the > PDF file

Re: [iText-questions] need help on TextField font

2008-04-25 Thread johniText
Dear 1T3XT, Thanks a lot for your help. I ran the code you provided, and it produced the exact behaviour as I described. I attached the PDF file produced on my system for your reference. The environment of my system is: Windows 2000, Java JDK 1.5, Adobe reader version 8.1.0, iText version 2.1

Re: [iText-questions] need help on TextField font

2008-04-24 Thread 1T3XT info
johniText wrote: Hello, I am using the convenience class, TextField, to create PdfFormField. First I create the text field, then I set the text and the font, color, etc. I made a small standalone sample and I can't reproduce the following behavior: But When I open the PDF file using Adobe rea

[iText-questions] need help on TextField font

2008-04-24 Thread johniText
Hello, I am using the convenience class, TextField, to create PdfFormField. First I create the text field, then I set the text and the font, color, etc. But When I open the PDF file using Adobe reader, the font of the text is NOT what I set in my java code. The weired thing is, if I click the