Document.Save method hangs when DOCX is converted to PDF using .NET

Hello,
We are experiencing a problem in Aspose.Words .NET 16.11.00 where saving to PDF is hanging. The method “public SaveOutputParameters Save(string fileName, SaveFormat saveFormat)” in the class “Aspose.Words.Document” causes our application to stop doing any work. ​No exception is being raised. We believe this has to be something environmental, as the exact same code and source content works as expected in some of our production environments, but not in others. Unfortunately we haven’t been able to determine any differences between the environments that should affect Aspose. Can you suggest anything that might help us identity the source of the issue?

Regards,
Ancile Solutions

@ANCILE1

Please try the latest version of Aspose.Words for .NET 20.8. Hope this helps you.

If you still face problem, please ZIP and attach your input Word document and code example here for testing. We will investigate the issue and provide you more information on it.

Hi Tahir,

Unfortunately using the latest version of Aspose.Words is not a viable option for us at this time. As I mentioned, the same source content (XML content as a byte stream loaded into Aspose.Words.Document class) is working as expected in a different environment. The build process seems to be working fine, it’s specifically when we hit the .Save() method of the class that the process stalls.

I suppose what we’re looking for is a way to get some visibility into what’s going on in that method. Are there are options available for logging or debug output that we can use to investigate?

@ANCILE1

Perhaps, you are facing this issue with specific document. Unfortunately, it is difficult to say what the problem is without document and code example. Please ZIP and attach document and code example for testing purpose. We will investigate the issue and provide you more information on it.

A post was split to a new topic: Add timeout API in Aspose.Words