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

Free Support Forum - aspose.com

Infinite loop during updatePageLayout call

Given this Aspose.words code:

Document doc = new Document("Infinite Loop - Repro.docx");
doc.updatePageLayout();

and this document: Infinite Loop - Repro.zip (30.0 KB)

Aspose.Words gets into an infinite loop on the call to updatePageLayout().

This also happens when calling any method that in turn calls updatePageLayout internally, which includes things like doc.toString(SaveOptions.createSaveOptions(SaveFormat.HTML)).

@rocketraman

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-18976. 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-18976) have been fixed in this Aspose.Words for .NET 20.4 update and this Aspose.Words for Java 20.4 update.