Free Support Forum -

Bookmarks get corrupted/deleted after UpdateFields() using Aspose.Words


When I run UpdateFields() on a Word document, the bookmarks get corrupted or deleted.

var doc = new Document(@“test.docx”);

In the test document, there are 3 bookmarks, each of them covers the range of a content control, so the content control will be selected if you click on ‘Go To’ in Word on the bookmark. But after UpdateFields() using Aspose, one of the bookmark ‘test3’ is missing, and the range of ‘test1’ and ‘test2’ is corrupted (‘Go To’ doesn’t work anymore for these bookmarks)
image.png (33.4 KB)
image.png (38.5 KB)

I’ve attached the test documents and screenshots for your reference, could you please take a look? (27.3 KB)



Thanks for your inquiry. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-17309. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.