Hi,
I have a situation where Aspose.Email & Words for .NET the message body is not correct converted to PDF.
Please take a look at the attached PDF. I included the original messages as wel.
Is there a way to improve de formating ins standard way (that works on all message bodies not only this one)?
I’m using version 6.9.0 (9/9/2016) to Aspose.Email and Aspose.Words for .NET 16.8.0 (9/10/2016).
The following code is used.
theMessage = MailMessage.Load(inputFileName);
MemoryStream stream = new MemoryStream();
theMessage.Save(stream, Aspose.Email.Mail.SaveOptions.DefaultMhtml);
stream.Seek(0, SeekOrigin.Begin);
Aspose.Words.LoadOptions loadOptions = new Aspose.Words.LoadOptions();
loadOptions.LoadFormat = Aspose.Words.LoadFormat.Mhtml;
Aspose.Words.Document doc = new Aspose.Words.Document(stream, loadOptions);
Aspose.Words.Saving.PdfSaveOptions options = new Aspose.Words.Saving.PdfSaveOptions();
options.Compliance = PdfCompliance.Pdf15;
<span style=“color: rgb(51, 51, 51); font-family: “Courier New”; font-size: small;”>doc.Save(outputFileName, options);
<span style=“color: rgb(51, 51, 51); font-family: “Courier New”; font-size: small;”>
Best regards,
Andreas Ruge
Andreas Ruge