HTMLParser only converts the first line of the file

后端 未结 3 542
误落风尘
误落风尘 2021-01-15 15:32

I am using iText for .NET for converting HTML to PDF.
I\'m using HtmlParser to convert an HTML page to PDF, but the problem is that Htmlparser only seems to convert the

3条回答
  •  无人及你
    2021-01-15 16:06

    Oh i finally got the solution Instead of using htmlparser class i have now used htmlworker class here is the new code

    ArrayList p = HTMLWorker.ParseToList(new StreamReader("fck.html"), st);
    for (int k = 0; k < p.Count; k++)
    {
        final.Add((IElement)p[k]);
    }
    final.Close();
    

提交回复
热议问题