We are trying to convert an email body to tiff but its skipping some parts of the email. We think it is because an email address written there as a hyperlink. Please advise how we can resolve this issue. Thank you
More details in the link below
https://forum.aspose.com/t/email-body-converting-to-tiff-skipping-some-pages/277052/8
@cndtsumesh Could you please attach your input e-mail message and output TIFF here for our reference? We will check the issue and provide you more information.
Hi, thank you for the quick response…how do I attach an item with extension .eml in this forum. Please guide me. Thank you
@cndtsumesh You can zip the file and attach it here.
Sample.zip (81.6 KB)
Please find sample as requested
@cndtsumesh Thank you for additional information. Unfortunately, I cannot reproduce the problem on my side using the latest versions of Aspose.Words and Aspose.Email and the following simple code:
Aspose.Email.MailMessage msg = Aspose.Email.MailMessage.Load(@"C:\Temp\in.msg");
msg.Save(@"C:\Temp\tmp.mhtml", Aspose.Email.SaveOptions.DefaultMhtml);
Aspose.Words.Document doc = new Aspose.Words.Document(@"C:\Temp\tmp.mhtml");
Aspose.Words.Saving.ImageSaveOptions opt = new Aspose.Words.Saving.ImageSaveOptions(Aspose.Words.SaveFormat.Tiff);
for (int i = 0; i < doc.PageCount; i++)
{
opt.PageSet = new PageSet(i);
doc.Save($@"C:\Temp\page_{i}.tiff", opt);
}
Here are output temporary MHTML produced by Aspose.Email and TIFF images produced by Aspose.Words:
out.zip (227.5 KB)
Hi,
We tried the above solution but still images are not getting converted properly.
Also we see that our version of Aspose 19.9.0.0. doesnt have the PageSet option for the Aspose.Words.Saving.ImageSaveOptions. Also do you think the issue is related to the hyperlink present in the email body?
Please see the output we are getting is attached.
output.zip (89.9 KB)
Please advise.
@cndtsumesh The images are downloaded from internet. I can reproduce the problem you have encountered if convert the document without internet connection. So please make sure the external images are accessible on your side.
Hi @alexey.noskov , we checked and we are able to access the internet. We have the email messages locally accessible as well.
Will this be a version issue?
@cndtsumesh Yes, this might be a version issue since you are using quite old version of Aspose.Words. Please try using the latest 24.2 version on your side and let us know if the problem still persists.