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,
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();
}