Unicode text fields are not supported. It's on my to-do list but I've no idea when it will be implemented. Note that you can still use a codepage at a time, like Cp1251 for cyrillic.
----- Original Message ----- From: "wang yun" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, June 27, 2005 9:38 PM Subject: [iText-questions] Problem with Text Form Field for Unicode Text Dear Paulo, I want to create a unicode Text Field. Please see my code and output pdf. The text can dispaly very well. But, I can not type text inside the adobe reader. Please help. Document document = new Document(PageSize.A4, 50, 50, 50, 50); PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("text_fields_unicode.pdf")); document.open(); TextField app = new TextField(writer, new Rectangle(100, 700, 300, 725), "Dickens"); BaseFont bf = BaseFont.createFont("c:\\windows\\fonts\\comic.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED); app.setFont(bf); String text= "Greeks: \u0393\u0394\u03b6"; app.setText(text); PdfFormField field = app.getTextField(); writer.addAnnotation(field); document.close(); ------------------------------------------------------- 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_id=7477&alloc_id=16492&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
