如题: 有朋友解决了没?主要是实现中文网页的转换。

解决方案 »

  1.   

    我现在已经实现了 但是不能转换中文
     private void HtmlToPDF(string HtmlPath,string  PdfPath)
            {
                
    Document document = new Document(PageSize.A4, 80, 50, 30, 65);
            
    try 
    {
             
                                  
                    PdfWriter.GetInstance(document, new FileStream(PdfPath, FileMode.Create));                HtmlParser.Parse(document, HtmlPath);                document.Close();
    }
    catch(Exception e) 
    {
                    
                    document=null;
    throw e;
    }
                

            }
      

  2.   

    我的也是不能轉換中文,這個問題你解決了嗎?還有你的HtmlParser是指的HTMLWorker嗎?