We are using a combination of Aspose.Email and Aspose.Words to convert email messages to PDFs as suggested in these forums by first saving the MSG file to MHTML with Aspose.Email (2.9.0) and then saving the MHTML to PDF using Aspose.Words (13.3.0).
There certain messages that cause the saving to PDF process to take a very long time to complete (we have observed over 20 hours), while the initial MSG to MHTML conversion is very fast.
I’ve attached the original .MSG file and the intermediate MHTML that is generated. If you attempt to save this MHTML to PDF, you will observe the performance issue using this code:
var document = new Aspose.Words.Document(mhtmlFile, new LoadOptions()
{
LoadFormat = LoadFormat.Mhtml
});
document.Save(outputFilePath, SaveFormat.Pdf);
Can you investigate why this is happening?