Converting HTML document with embedded images to .doc


#1

Is there an easy way to convert an HTML file to .doc, including embedded images? I have an HTML file, with tags that link to images hosted on a server (<img src=“http://blahblahblah”&gtWink. I need to convert the HTML file to a self-contained .doc, with the images embedded in the Word file. What’s the easiest way to do that?


#2

Hi,

Thank you for considering Aspose.

MS Word stores the images inside the document file so simply pass your HTML to the Document constructor and then save it as a .doc file:

Document doc = new Document(“MyDocument.html”);
doc.Save(“MyDocument.doc”);