You'll also need ftp://ftp.lowagie.com/iText/iTextAsian.jar.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Hu Yali [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, October 09, 2002 7:49
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] how to create Japanese PDF file
> 
> hello everyone,
> I am one Java SE working for the Toyota Communication Co. in Japan.
> I used the iText java API to create the Japanese PDF file.
> My sample code is showed as below:
> [
>  String newpdffile = "c:\\my_soft\\pdf\\test\\newpdf.pdf";
>  String japanese = "Hello World ! 日本語";
>  Document mydoc = new Document();
>  PdfWriter.getInstance(mydoc, new FileOutputStream(newpdffile));
>  mydoc.open();
>  BaseFont bfJp = BaseFont.createFont("HeiseiKakuGo-W5",
> "UniJIS-UCS2-HW-V",
> BaseFont.NOT_EMBEDDED);
>  Font FontJp= new Font(bfJp, 12, Font.NORMAL);
>  Paragraph chunk = new Paragraph(japanese, FontJp);
>  mydoc.add(chunk);
>  mydoc.close();
> ]
> There is no error when I compiled it, but the error message is sent out
> when
> I run the class file. The error message is
> "Missing configuration files for CJK fonts
> Font 'HeiseiKakuGo-W5' with 'UniJIS-UCS2-HW-V' is not recognized."
> 
> Could you tell me how to make the correct configuration file? where can I
> find this file?
> 
> Please help me !
> 
> Best regards !
> 
> 
> 
> yours
> ********************************
> Hu, Yali
> :-)
> [EMAIL PROTECTED]
> Toyota Commnunication System Co.
> http://www.toyota-cs.com
> Tel  81-52-952-8776
> Fax 81-52-952-8780
> ********************************
> 
> 
> 
> -------------------------------------------------------
> 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


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

Reply via email to