EML to PDF has rendering issues (C# .NET)

Hello,
I try to convert an Eml to Pdf file.
The Pdf file converted is wrong for some Eml files

I use VS 2010 on Windows 7, and Aspose.EMail for .Net 3.4.0 - .net 3.5
(same problem with Aspose.EMail for .Net 3.6.0)

Here is the code :

Dim inStream As MemoryStream = New MemoryStream(bFileW) 'bFileW = Eml file bytes
Dim msgStream As MemoryStream = New MemoryStream()

Dim msg As Mail.MailMessage = Mail.MailMessage.Load(inStream, Mail.MessageFormat.Eml)
msg.Save(msgStream, Mail.MailMessageSaveType.MHtmlFormat)
msgStream.Position = 0
Dim msgDocument As Aspose.Words.Document = New Aspose.Words.Document(msgStream)
msgDocument.Save(outStream, Aspose.Words.SaveFormat.Pdf) 'outStream for Pdf file

The Eml file is in 'File Attachment'

Thank you for your response.

Best Regards.

Hi Philippe,


We regret the inconvenience caused to you in this regard.

After an initial investigation, I was able to observe this issue by saving the EML file to disc in MHTML format and have logged it as NETWORKNET-34200 in our issue tracking system for further investigation by our development team. Once the fix version is available in this regard, we’ll update you here via this thread.

The issues you have found earlier (filed as NETWORKNET-34200) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.