Lost formating when convert msg/eml messaged to PDF

Hi, we are currently investigation if we want to purchase the Aspose tools. We need to convert Word, Excel and Outlook documents (msg & eml) to PDF. Some time ago we tested Aspose .net and found that Word & Excel works fine, but the conversion of msg & eml files are nog to our satisfaction.

Is there any improvement made to the conversion?

I include a test message with the result.

Regards

Andreas Ruge

Hi Andreas,

Thank you for contacting Aspose support team.

This issue is tested using Aspose.Email for .NET 6.1.0 and Aspose.Words for .NET 15.12.0 but no issue is observed. You may please give try to the following sample code and let us know the feedback. Sample output is also attached here for your reference.

using (Aspose.Email.Mail.MailMessage mailMsg = Aspose.Email.Mail.MailMessage.Load(path + "Source.msg"))
{
    mailMsg.Save(path + "SourceByAspose.mhtml", Aspose.Email.Mail.SaveOptions.DefaultMhtml);

    using (var msgStream = new MemoryStream())
    {
        mailMsg.Save(msgStream, Aspose.Email.Mail.SaveOptions.DefaultMhtml);
        msgStream.Seek(0, SeekOrigin.Begin);
        var options = new Aspose.Words.LoadOptions();
        options.LoadFormat = Aspose.Words.LoadFormat.Mhtml;
        var document = new Aspose.Words.Document(msgStream, options);
        document.Save(path + "outputByAspose.pdf", new Aspose.Words.Saving.PdfSaveOptions());
    }
}