Hello,
I tried saving an MHTML document to pdf and it produced no content, attached is a zip document containing an example of the output and the source mht file. Below is the following code that I used to create the output.
I am able to open the source document in a browser and see the content, but the Words does not create any output. I’m not sure if this is a bug or a malformed mht file, the markup looks fine to me
Here is the code:
using Aspose.Words;
namespace AsposeTest
{
public class HtmlTest
{
public void SaveHtml()
{
var loadOptions = new HtmlLoadOptions()
{
LoadFormat = LoadFormat.Mhtml
};
var Document = new Document(@"d:\input\test.mht", loadOptions);
Document.Save(@"d:\output\output.pdf", SaveFormat.Pdf);
}
}
}data.zip (1.8 KB)