Outlook .msg to PDF

We’re trying to convert a specific .msg to pdf, but some of the email body is removed from the converted document. The .msg email is a quite simple one with some text and hyperlinks.
We’re using latest version 23.5 with the following code:

Aspose.Email.MailMessage emailDoc = Aspose.Email.MailMessage.Load(filename);

MemoryStream htmlStream = new MemoryStream();

MhtSaveOptions mhtSaveOptions = new MhtSaveOptions()
{
    CheckBodyContentEncoding = true,
    PreserveOriginalBoundaries = true,
    MhtFormatOptions =
                     MhtFormatOptions.WriteHeader |
                     MhtFormatOptions.WriteCompleteFromEmailAddress |
                     MhtFormatOptions.WriteCompleteToEmailAddress |
                     MhtFormatOptions.WriteCompleteCcEmailAddress |
                     MhtFormatOptions.WriteCompleteBccEmailAddress |
                     MhtFormatOptions.HideExtraPrintHeader |
                     MhtFormatOptions.RenderVCardInfo
};

emailDoc.Save(htmlStream, mhtSaveOptions);

Aspose.Words.Loading.LoadOptions loadOptions = new Aspose.Words.Loading.LoadOptions()
{
    LoadFormat = Aspose.Words.LoadFormat.Mhtml,
};

var wordDoc = new Aspose.Words.Document(htmlStream, loadOptions);

foreach (Aspose.Words.Tables.Table table in wordDoc.GetChildNodes(NodeType.Table, true))
    table.AutoFit(AutoFitBehavior.AutoFitToWindow);

var saveOptions = new Aspose.Words.Saving.PdfSaveOptions() { };

wordDoc.Save(dstFilename, saveOptions);

Document to reproduce problem inside zip here:
MissingTextProblem.zip (15.7 KB)
MissingTextProblem.zip (15.7 KB)

@andersalvsaker I have checked the conversion on my side and as I can see content in PDF document corresponds the content of the intermediate MHTML document produced by Aspose.Email:
out.pdf (58.0 KB)
tmp.zip (2.5 KB)

My colleagues from Aspose.Email team will check the issue and get back to you shortly.

1 Like

I’m just curious if you have heard anything from the Aspose.Email team ?

@andersalvsaker,

I am moving your thread to respective forum where one of fellow colleagues from Aspose.Email team will evaluate your issue soon.

We are sorry for any inconvenience caused!

1 Like

@andersalvsaker
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): EMAILNET-41088

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like

Regrading this issue and free support. Any idea how long it will take before a fix can be provided ?
Thanks in advance

Hello @andersalvsaker,

Answering your question about the fix: according to the terms of free support we don’t give exact predictions about the timing of changes implementation. In your case, it might take up to a month.

We’re sorry for keeping you wait. Thanks for your patience. Our developers do their best to solve issues asap.