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

Free Support Forum - aspose.com

Cannot generated PDF file from email


We use Aspose.Total for Java and have the follow issue:
1. Try to transform .eml file to pdf, but there is error during transformation and .pdf file is not generated:
com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.
at com.aspose.words.FileFormatUtil.цLY(Unknown Source)
Possible reason: big e-mail - 33 pages

Attach files for reproducing the problem and the error.


Hi Ginka,

I have analyzed the information and afraid to inform that I could not reproduce this issue using latest version of Aspose.Email for Java 2.7.0 and Aspose.Words for Java 13.1.0. I used following code for testing:

MailMessage message = MailMessage.load(“case4-original.eml”,MessageFormat.getEml());
message.save(“Test4.mht”, MailMessageSaveType.getMHtmlFromat());
Document doc = new Document(“Test4.mht”);
catch (Exception e)

Could you please give a try to the above code and let us know your feedback.