We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exception "infinite loop detected." when converting doc to pdf

When converting some doc files to pdf following error occurs:
System.InvalidOperationException: Infinite loop detected.
at .(Int32 )
at .( )
at .( )
at .()
at .()
at Aspose.Words.Document.UpdatePageLayout()
at .( , )
at . ​ ​( )
at . ​ ​( )
at Aspose.Words.Document.( , SaveOptions )
at Aspose.Words.Document.(Stream , String , SaveOptions )
at Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
We are using latest version of Aspose.Words (19.5)
I have attached the file, on which this behavior can be reproduced
BugAsposeLoop.zip (8.1 KB)


We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-18618. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

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