We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Minor format problems converting mail to pdf (4/4)

I have 4 cases of minor formatting problems. Here is the last: (attach)
the formatting of cascaded collections is not correct. Please have a look:
* Zusätzlich müssen…
I tested with Aspose.EMail and Aspose.Words
This is the code I use:
string strFile = @“C:_Temp\Aspose_EMailWord\Daten\Test RTF.msg”;
string sInFile = strFile;
string sOutFile = strFile + “.pdf”;

Aspose.Words.License wLic = new Aspose.Words.License();
Aspose.Email.License eLic = new Aspose.Email.License();

System.IO.MemoryStream mstream = new System.IO.MemoryStream();
MailMessageLoadOptions mOpts = new MailMessageLoadOptions();

mOpts.MessageFormat = MessageFormat.Msg;

Aspose.Email.Mail.MailMessage mail = Aspose.Email.Mail.MailMessage.Load(sInFile, mOpts);
mail.Save(mstream, MailMessageSaveType.MHtmlFormat);
mstream.Position = 0;
WriteStream2File(mstream, strFile + “.mhtml”);
mstream.Position = 0;

Aspose.Words.LoadOptions lo = new Aspose.Words.LoadOptions();
lo.LoadFormat = Aspose.Words.LoadFormat.Mhtml;

Aspose.Words.Document doc = new Aspose.Words.Document(mstream, lo);
doc.Save(sOutFile, Aspose.Words.SaveFormat.Pdf);

Kind regards,

Hi Oliver,

Thank you for sharing your concern with us.

I was able to reproduce this issue at my end using the latest version of Aspose.Email for .NET 4.4.0 and have logged it as NETWORKNET-34464 in our issue tracking system for further investigation by our development team. Once there is any information available in this regard, I'll update you here via this thread.

We are sorry for the inconvenience caused to you.

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

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


I tested the latest version and the formatting of cascaded collections is now correct.
But the used font is not the same anymore. Could you please check again.

Thank you.

Kind regards,

Hi Oliver,

I have tested this issue with the latest version of Aspose.Email for .NET 4.5.0 and couldn’t notice the differences in font as you have shared. The comparison screenshot can be seen here which shows that fonts are the same. Please share elaborative screenshot with us which shows the font difference as you have observed. We’ll look into it for assisting you further.


you are right, the fonts in the mhtm-file are ok, they differ, when converting the html-file to pdf.
I will open a new incident in the pdf-forum.

The line-space still differs a bit, but I think, this is ok.

Kind regards,

Hi Oliver,

Thank you for providing feedback. Please feel free to write us if you have any other query related to Aspose.Email.