Did you change the file I sent you? Any modifications to the msg will make the problem go away.
To further investigate I created a stand-alone Visual Studio 2017 console App
referencing Aspose Email 18.8 and Aspose Words 18.9.
This is the app:
The app includes the repro file and the code below.
When running this app I get the message:
MapiMessage HTML has more text than MailMessage HTML
And the resulting PDF does not include the line:
6/21: 10:00-3:00pm PT
If you want to try the app, you will need to do a nuget restore, as I did not include the packages
to make the app smaller.
I did not include the license in the test app … as I don’t think it matters ( I can repro the problem when using
This is the full app:
static void Main(string args)
string filePath = @“Re-Catch-up.msg”;
using (var stream = File.OpenRead(filePath))
MapiMessage mapiMessage = MapiMessage.FromStream(stream);
MailMessage mailMessage = mapiMessage.ToMailMessage(new MailConversionOptions());
if (mapiMessage.BodyHtml.Contains("6/21: 10:00-3:00pm PT") &&
!mailMessage.HtmlBody.Contains("6/21: 10:00-3:00pm PT"))
Console.WriteLine("MapiMessage HTML has more text than MailMessage HTML");
MemoryStream ms = new MemoryStream();
// create an instance of LoadOptions and set the LoadFormat to Mhtml
var loadOptions = new Aspose.Words.LoadOptions();
loadOptions.LoadFormat = Aspose.Words.LoadFormat.Mhtml;
// create an instance of Document and load the MTHML from MemoryStream
var document = new Aspose.Words.Document(ms, loadOptions);
// create an instance of HtmlSaveOptions and set the SaveFormat to Html
var saveOptions = new Aspose.Words.Saving.PdfSaveOptions();
document.Save(filePath + ".pdf", saveOptions);