Cannot generated PDF file from email

Hi,

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.

Thanks

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());
try
{
Document doc = new Document(“Test4.mht”);
doc.save(“Test4.pdf”,com.aspose.words.SaveFormat.PDF);
}
catch (Exception e)
{
e.printStackTrace();
}


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