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

Free Support Forum - aspose.com

Bookmark Node is misplaced after docx -> htm -> docx

I have a word document with bookmarks tobeSaved1 and tobeSaved2. Converting the word to htm and tripping again to word docx the above bookmarks are misplaced.

the first conversion of html results -
image.png (6.7 KB)

when the htm is saved back to word and conveting the same to html bookmark node is replaced like this -
image.png (8.1 KB)

We have also observed the same behavior when the word docx is unzipped.
The initial word is unzipped, following are the node -
image.png (12.8 KB)
where we can see the bookmark end node is inside the std content.
After converting to htm -> docx again using aspose -
image.png (16.8 KB)
we observe that bookmark end node is moved outside the std node.

Please look into this.


@ServerSide527 Could you please attach your input document here for testing? We will check the issue and provide you more information.

Please find the attachment below -

BookmarkTest.zip (11.8 KB)
I have attached whole solution file.

@ServerSide527 Thank you for additional information. I have managed to reproduce the problem on my side and logged it as WORDSNET-23239. We will keep you informed and let you now once it is resolved.