Convert Aspose.Email Generated MHTML File to PDF using Aspose.Words for .NET (C#) | Avoid CPU Hanging Halting

Hello,

Aspose.Words for .NET 20.7 hangs when attempting to save the attached MHTML file (generated by Aspose.Email for .NET) to PDF using the following code:

var doc = new Aspose.Words.Document("input.mhtml");
doc.Save("output.pdf");

File: input.zip (15.7 KB)

A 0-byte PDF is created, but the Save function does not complete (still running after an hour).

Can you please advise.

Thanks

@ast3,

We have logged this issue in our bug tracking system with ID WORDSNET-20752. You will be notified here as soon as it will get resolved in future. Sorry for the inconvenience.

@ast3,

It is to update you that we have fixed the problem of ‘infinite loop’ and the fix will be integrated in next 20.12 version of Aspose.Words. However, after fixing this issue, we have observed that the layout in final output is wrong. To fix the layout problem, we have logged a separate issue with ID WORDSNET-21459. We will inform you as soon as this issue will get resolved in future. We apologize for any inconvenience.

The issues you have found earlier have been fixed in this Aspose.Words for .NET 20.12 update and this Aspose.Words for Java 20.12 update.