I want to display the "KOREAN" characters in the pdf. the runtime
environment will be in Unix.
I have done the the following,
1) created a new locale for korean Locale korea = new Locale("ko");
2) created the "BaseName_ko.properties" file via Notepad in windows,
which
has korean characters and saved it with encoding "Unicode "
3) ftp the .properties file to the unix environment which is my runtime
environment.
4) convert the .properties to ASCII equivalent using the cmd linein unix,
native2ascii -encoding UTF-16 BaseName_ko.properties
TargetBaseName_ko.properties
5) Loaded the korean properties file using the ResourceBundle ,
korea=ResourceBundle.getBundle("TargetBaseName", new Locale("ko"));
6) tried to get the resource string ,
String pageNo =resourcebundleObject.getString("PAGE_NO");
I guess it is working until this line, since I wrote it in the external
txt
file using PrintWriter class.
Now, I tried to print that in the pdf using paragraph class using class
"Chunk"
I'm not clear how to create the fBaseFont for the encoding of korean
characters. I think this is the issue.
which one in the following below I should use for createing the font for
the
encoding for korean characters,
public static final String IDENTITY_H = "Identity-H";
public static final String IDENTITY_V = "Identity-V";
public static final String CP1250 = "Cp1250";
public static final String CP1252 = "Cp1252";
public static final String CP1257 = "Cp1257";
public static final String WINANSI = "Cp1252";
so that I can use the following function in "BaseFont " class
public static BaseFont createFont(String s, String s1, boolean flag
thanks,
Sudhakar
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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