1 to 6 is irrelevant to iText. See chapter 8 and 9 of the book.

Paulo 

> -----Original Message-----
> From: Sudhakar A [mailto:[email protected]] 
> Sent: Monday, March 02, 2009 5:43 AM
> To: [email protected]
> Subject: [iText-questions] How to createFont in BaseFont 
> class for korean charatcters
> 
>  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
> 

Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


------------------------------------------------------------------------------
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

Reply via email to