Saving body of this outlook message body to PDF takes 24 hours

Hi,


At a client side we found a few of the attached outlook message files. These are attachments of an other message file. Our software will save the body of the messages to PDF. For these files it will take up to 24 hours to save the PDF and results in a PDF of 2 gigabyte. I found out that saving the body from Aspose.Words.Document as a PDF takes that long. Loading the message, saving the body to a MHTML stream and loding that stream into Aspose.Words.Document appears not the problem.

Looking at the body of the message that is no surprise to me, clearly there is something wrong with these messages.

Therefore the question is:

  1. Any idea what is wrong with these messages, and if yes is there a way to detect that?
  2. Is there a way to detect that saving a word to PDF wil take a long time or results in a large file (>500 MB)?
  3. Is there a way to monitor the process of saving the word to a PDF and cancel the process (using a callback event)?
  4. Any other suggestions to fix this are welcome :slight_smile:
Regards
Andreas Ruge


Hi Andreas,


Thank you for contacting support. We’re working over your query and will get back to you soon.

Hi Andreas,


Thank you for being patient. We managed to replicate the problem of not being able to save an MHTML document to PDF. It has been logged under ticket ID WORDSNET-14450 in our bug tracking system. Your post has also been linked to this ticket. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.
a.ruge:
Any idea what is wrong with these messages, and if yes is there a way to detect that?
There is no problem with the source message file because if there is something wrong with the message body, Aspose.Email API will raise an error, but Aspose.Email API reads and converts it fine to MHTML format. Microsoft Office Word also opens output MHTML perfectly fine.
a.ruge:
Is there a way to detect that saving a word to PDF wil take a long time or results in a large file (>500 MB)?
Is there a way to monitor the process of saving the word to a PDF and cancel the process (using a callback event)?
There is no way to achieve this. However, you may stop the execution of your program after some specific time. Please check this code example: https://forum.aspose.com/t/47771

The issues you have found earlier (filed as WORDSNET-14450) have been fixed in this Aspose.Words for .NET 17.1.0 update and this Aspose.Words for Java 17.1.0 update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.