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

Free Support Forum - aspose.com

Email content is changed in generated PDF file


We use Aspose.Total for Java and have the follow issue:
1. Transform .eml file to PDF file, but
- email content is changed in generated PDF.
- images and text from the email are mess up in generated PDF.

Attach files for reproducing the problem and transformed PDF files which are broken.
- for case1-original.eml - text “Subject:Danachni deklaracii” is changed.
- for case2-original.eml and case3-original.eml - images and text are mess up.


Hi Ginka,

Thanks for writing to Aspose.Email support team.

I have analyzed the information and want to share that this issue is not related to Aspose.Email assembly. This can be confirmed by saving the EML to disc in mht format using following code:

MailMessage message = MailMessage.load(“case1-original.eml”,MessageFormat.getEml());
message.save(“case1-original.mht”, MailMessageSaveType.getMHtmlFromat());

When this saved mht file is opened, there is no abnormality found in “Subject: Danachni deklaracii”.

However if we load this mht file into Document object and then save it as PDF, issue is introduced in the resultant PDF as shown in the following code:

Document doc = new Document(“case1-original.mht”);

This shows that there is some issue in the Aspose.Words conversion from mht to PDF. Could you please post this issue on Aspose.Words where the concerned experts will assist you in this regard.

Similarly tests can be performed with “case2-original.eml” and “case3-original.eml” and it can be observed that there is no issue in the resultant mht file created from Aspose.Email. All the text and images are displayed properly in mht.

Please feel free to write us back if you have any other query in this regard.