Here is my code:
- Code: Select all
var document = new PdfDocument();
document.LoadFromFile(@"C:\temp\pdf.pdf");
using (var finalStream = new MemoryStream())
{
document.SaveToStream(finalStream, FileFormat.HTML);
var finalHtml = Encoding.UTF8.GetString(finalStream.ToArray());
File.WriteAllText(@"C:\temp\html.html", finalHtml);
}
Please advise on solution with code fix or if there are some limitations to be aware of with this framework.