The encoding is specified in BaseFont.createFont(). UTF-8 has
nothing to do with java in this sense as a String is always UTF-16 and that's
what we need. Start by reading http://www.lowagie.com/iText/tutorial/ch09.html and
BaseFont javadocs. There are also examples at http://itextpdf.sf.net.
Best Regards,
Paulo Soares
From: Parag Sagar [mailto:[EMAIL PROTECTED]
Sent: Friday, October 08, 2004 2:35 PM
To: Paulo Soares; [EMAIL PROTECTED]
Subject: RE: [iText-questions] PDF in Chinese & russian. (TF8 encoding or fonts?Paulo,Thanks for the information.Can you share some experpt of code for the same.I am looking where to specify the encoding?Also, I think I need to change the fonts based on the coming locale.Thank for you help,Parag Sagar
-----Original Message-----
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 07, 2004 4:54 PM
To: Parag Sagar; [EMAIL PROTECTED]
Subject: RE: [iText-questions] PDF in Chinese & russian. (TF8 encoding or fonts?It all depends on the fonts and encoding.Russian - the standard TT fonts that come with winxp with encoding "Cp1251" or "Identity-H" (arial, ...)CJK - see http://www.lowagie.com/iText/tutorial/ch09.html#CJK. If you wand to embedd the fonts use arialuni.ttf with encoding "Identity-H". Other fonts can be used, see the winxp instalation disk.Best Regards,Paulo Soares
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Parag Sagar
Sent: Thursday, October 07, 2004 11:38 AM
To: [EMAIL PROTECTED]
Subject: [iText-questions] PDF in Chinese & russian. (TF8 encoding or fonts?Hi experts,I am using itext.jar for generating PDF documents online.My Website generate reports in different languages including russian & chinese.My text is in UTF8 format which is picked up from resourcebundles depending upon the locale.I can see other language text ie english, french Italian.But not able to see Chainese and russian.Is this is a problem with UTF8 encoding. Do the need to explicitly encode the document with UTF8 encoding?Or just changing the fonts will do? can you please suggest the fonts name for russian & chinese in that case?Thanks & regards,Parag Sagar
