Saving rich text Email as PDF

We followed the code in below link to convert eml files with rich text body. overall it works but we see some issues like table borders are not shown in the generated PDF. The conversion is fine when email body is html , the issue is only when the email body is rtf. Can you pls help?


Could you please ZIP and attach your input email file, output MTHML and PDF files? We will investigate the issue and provide you information on it.

Dear Tahir,

We investigated this issue internally further, and it seems it is not an issue with Aspose, but the .eml file downloaded using graph api does not have body as rich text format, instead it is getting automatically converted to html by microsoft exchange. This conversion is apparently done by exchange server (as shown in screenshot below). Ideally this conversion should be lossless but apparently it has some loss of formatting of table borders.

image.png (9.2 KB)

So, i think Aspose is not the cause of the issue, and it is working as expected.

sorry for any inconvenience.



Please feel free to ask if you have any question about Aspose.Email, we will be happy to help you.