Hello,Paulo

When I was trying to get a pdf file from an html page I have a problem which is 
as follow:


       BaseFont bfChinese = BaseFont.createFont("STSongStd-Light",
              "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED);
       Font fontChinese = new Font(bfChinese, 12, Font.NORMAL, Color.RED);
       
       Paragraph para = new Paragraph("",fontChinese);
       
       StringReader sr = new StringReader(sb.toString());
       ArrayList p = HTMLWorker.parseToList(sr, null);
       for (int k = 0; k < p.size(); ++k)
           para.add((Element) p.get(k));


Although I had set the font to be fontChinese,there is no Chinese charactor in 
the generated pdf file.

Why?Does the HTMLWorker support Chinese fonts?

Thank you!
                                   
                                      Scott
                                    2007-10-9
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to