@mayurih Sure, you can pass HTML string. The code example reads HTML content from the file just for demonstration purposes.
can u give one example of how to pass html string while creating htmldoc in memory
@mayurih You can use code like the following:
string html = File.ReadAllText(@"C:\Temp\in.html");
Document htmlDoc;
using (MemoryStream htmlStream = new MemoryStream(Encoding.UTF8.GetBytes(html)))
htmlDoc = new Document(htmlStream);