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.
Any Ideas about this.
Again Thanks,
Rahul Soni.
________________________________
From: 1T3XT info <[email protected]>
To: Post all your questions about iText here
<[email protected]>
Sent: Wednesday, 22 April, 2009 12:35:49 PM
Subject: Re: [iText-questions] set pdf Fields with different language fonts
Rahul Soni wrote:
> Now in the request parameter i get the hex code like ѱ
See com.lowagie.text.xml.simpleparser.EntitiesToUnicode
It has methods like decodeEntity(String name) and
decodeString(String s);
--
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
Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo!
Edition http://downloads.yahoo.com/in/firefox/------------------------------------------------------------------------------
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