You forgot to put iTextAsian.jar in your CLASSPATH. Please post this kind of questions to the mailing-list or consult the mailing list archives.
Quoting Ashutosh Salgarkar <[EMAIL PROTECTED]>: > Hello Bruno, > > I am working on a requirement wherein I need to convert the Japanese HTML > (Shift_JIS) page to Japanese PDF on-the-fly. > I am taking the help from the sample source code at > http://www.lowagie.com/iText/tutorial/ch09.html for CJK fonts. > I just modified the code to have the Japanese PDF. But it is giving me an > error > > 1. For following settings > BaseFont bfJap = > BaseFont.createFont("c:\\winnt\\fonts\\msmincho.ttc,0", > BaseFont.IDENTITY_H, BaseFont.EMBEDDED); > Font font = new Font(bfJap, 12); > String text1 = "??"; //japanese text > document.add(new Paragraph(text1, font)); > > Error: > "Missing configuration files for CJK fonts" . The PDF file gets > generated but with junk characters > > 2. For following settings: > > BaseFont bfJap= BaseFont.createFont("HeiseiKakuGo-W5", "UniJIS-UCS2-H", > BaseFont.NOT_EMBEDDED); > Font font = new Font(bfJap, 12); > String text1 = "??"; //japanese text > document.add(new Paragraph(text1, font)); > > Error: > "Font 'HeiseiKakuGo-W5' with 'UniJIS-UCS2-H' is not recognized." . The > PDF file gets generated but can not open. > > Could you please help me in this regard, > Ashutosh > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
