Hi, it appears that aspose.word will happily read an eml document and convert it to PDF. Two questions but:
1. Is that supported ?
2. How can I adjust the page size and margins of the PDF document that it produces ?
Thanks
Hi,
doc;
//Load the EML file
var message = MailMessage.Load("Sample Eml File.eml", MessageFormat.Eml);
using (var mhtStream = new MemoryStream())
{
//Save the message as MHtml in memory stream
message.Save(mhtStream, MailMessageSaveType.MHtmlFromat);
//Create a new document
doc = new Aspose.Words.Document(mhtStream);
doc.Save("Output.pdf", Aspose.Words.SaveFormat.Pdf);
}
Hi, Thanks for the reply.
The really interesting thing is that every test eml I pass to aspose.word works. I am not sure why I would want to add the complexity of converting to mhtml for no obvious reason.
Here are some examples
Hi,