Hi,
When I run UpdateFields() on a Word document, the bookmarks get corrupted or deleted.
Code:
var doc = new Document(@“test.docx”);
doc.UpdateFields();
doc.Save(@“out.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?
test.zip (27.3 KB)
Thanks,