Hi,
I am triying to convert a word document file into a HTML document.
Like:
WordDocument sourceDocument = new WordDocument(file, FormatType.Automatic);
MemoryStream htmlStream = new MemoryStream();
sourceDocument.Save(htmlStream, FormatType.Html);
htmlStream.Position = 0;
var htmlContent = "";
using (StreamReader sr = new StreamReader(htmlStream))
{
htmlContent = sr.ReadToEnd();
};
File.WriteAllText(destinationFile, htmlContent);
But when I open the HTML file, the images are smaller and not in the same position.
Regards,
Juan Antonio