HTMLParser only converts the first line of the file

后端 未结 3 562
误落风尘
误落风尘 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:05

    I use

    StreamReader tempReader = new StreamReader(tempFile);
    
            ArrayList p = HTMLWorker.ParseToList(tempReader,st); 
    
            for (int k = 0; k < p.Count; k++) 
            {
                documento.Add((IElement)p[k]); 
            }
    
            tempReader.Dispose();
            documento.Close();
    

    and works fine too. but i put the dispose at the end

提交回复
热议问题