iText doesn't support Unicode form fields. If you create the form PDF with 
iText and define the font field encoding as Cp1250 it will work.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Nadrai Tamas
> Sent: Wednesday, July 20, 2005 2:04 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] filling pdf forms with hungarian font
> 
> hi,
> 
> I tried to fill pdf forms with iText with some hungarian text
> 
> 
> 
> BaseFont arial = BaseFont.createFont("times.ttf",
> BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
> 
> try {
> 
>  Object fontObject = new Object();
>             fontObject = arial;
>                                  
> 
> reader = new PdfReader("c:\\SimpleRegistrationForm.pdf");
> PdfStamper stamp2 = new PdfStamper(reader, new   
> FileOutputStream("c:\\gatya\\registered_flat.pdf"));
> AcroFields form2 = stamp2.getAcroFields();
> 
> form2.setField("name", "text with hungarian characters");
> form2.setFieldProperty("name","textfont",fontObject,null);
> form2.setField("address", "text with hungarian characters");
> form2.setFieldProperty("address","textfont",fontObject,null);
> form2.setField("postal_code", "text with hungarian characters");
> form2.setFieldProperty("postal_code","textfont",fontObject,null);
> ...
> .
> .
> 
> And I write some normal text in a pdf file in the same java
> file 
> with the same font and I get the following result :
> the normal text displays hungarian characters correctly,
> but the form fields display the text without the the special
> hungarian 
> characters (o and u with double acute)
> the form fields display all other characters, hungarian
> characters too,
> only those two characters missing.
> 
> what can be the problem?
> 
> thanks
> Tom
> 
> ______________________________________________________________
> _________
> [freemail] extra 1GB-os postafiókkal, Önnek már van? 
> http://freemail.hu
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to