I have an *eml file which I am converting to pdf.
// load the EML file using Aspose.Email for .NET
MailMessage msg = MailMessage.Load(@"C:\testEmailDownload\monday.eml", MessageFormat.Eml);
// convert Eml to MHTML and save to stream
MemoryStream msgStream = new MemoryStream();
msgStream.WriteTo(new FileStream(@"C:\testEmailDownload\monday.mhtml", FileMode.Create));
msgStream.Position = 0;
Document document = new Document(msgStream);
When I open the mhtml file the layout is ok. when I open the pdf there is extra lines being introduced. When i use fiddler to look at the mhtml file I can see that there are empty paragraphs that have p.MsoNOrmal css being applied to them. I think that this style is not being applied when the pdf conversion is happening.
I wasnt sure if it was the mso styles being ignored or inheritted css not working ???
any ideas ???