Rahul Soni wrote:
> Hi,
> 
> I really thankful for the reply first but now i am delve in the another 
> problem I got the Unicode characters for Japanese like 
> \u3053\u3093\u306b\u3061\u306f\u5927\u4e08\u592b\u3067\u3059 as a String 
> using my java code. I want to set this field in my acrofields. I have 
> iTextAsian.jar and iTextAsianCmaps.jar in my classpath. and I have also 
> used the method
> 
> BaseFont bfc = BaseFont.createFont("STSong-Light","UniGB-UCS2-H",false);
> acroFields.addSubstitutionFont(bfc);
> acrofields.setfield(fieldName,fieldVal);
> 
> to set the textfield but I am getting the same Unicode string in the 
> textfield.I have also tried it out using Chunk
> but still it prints the Unicode characters in the textfield.

It works for me: http://1t3xt.be/?X0000f6
Examine the example to see what you are doing wrong.
Maybe you're having Strings like "\\u3053" instead of "\u3053".
That would explain why you see the codes instead of the correct glyphs.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to