I am converting html document to png. but I need all the content in the word into one png. could you please give me a solution?
var byteArray = new List<byte[]>();
using (var inputStream = new MemoryStream())
{
HtmlDocument htmlDocument = new HtmlDocument();
using (var htmlStream = new MemoryStream(content.Data))
{
htmlDocument.Load(htmlStream);
AddCssLinks(options, htmlDocument);
}
htmlDocument.Save(inputStream);
//docOptions.Encoding = new UTF8Encoding(false);
Document WordDoc = new Document(inputStream);
using (var outputStream = new MemoryStream())
{
WordDoc.Save(outputStream, SaveFormat.Png);
byteArray.Add(outputStream.ToArray());
}
}
return byteArray;