When bookmarks are in nearby table cells, bookmark contents are not inserted correctly

Hi Aspose team,
In .NET, I have trouble with bookmark content inserting like this :

  • I have 2 bookmarks “BM_Cell1” and “BM_Cell2” in table cells like image below (the second is next to the first)
    image.png (3.4 KB)

  • I used document builder to write texts into each bookmarks, but 2 texts are written into BM_Cell1.
    Here is my sample code :

          public void InsertTextToBookmarks (Document asposeDocument)
               var documentBuilder = new DocumentBuilder(asposeDocument);
           documentBuilder.Write("This is Bookmark cell 1");
           documentBuilder.Write("This is Bookmark cell 2");

Here is my document : Template.zip (63.0 KB)

This is image of the issue : image.png (15.8 KB)

Do you have any clue in this case ?
Thank in advance


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-19052. 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.

Thank you for your support @awais.hafeez