@Gptrnt Unfortunately, I cannot reproduce the problem on my side. I have used the following code for testing:
Document doc = new Document("C:\\Temp\\in.docx");
// Get the table
Table table = doc.getFirstSection().getBody().getTables().get(0);
// Print bookmarks per row
int rowIdx = 0;
for (Row row : table.getRows())
{
System.out.println("Row " + rowIdx + " Contains " + row.getRange().getBookmarks().getCount() + " bookmarks:");
for (Bookmark bk : row.getRange().getBookmarks())
System.out.println("\t" + bk.getName());
rowIdx++;
}
Output of the above code is the following:
Row 0 Contains 1 bookmarks:
_agDetailTbl_bookmark#@@#@@##
Row 1 Contains 2 bookmarks:
Agenda_Detail_Title1
Page_number1
Row 2 Contains 2 bookmarks:
Agenda_Detail_Title2
Page_number2
Row 3 Contains 2 bookmarks:
Agenda_Detail_Title3
Page_number3
Row 4 Contains 2 bookmarks:
Agenda_Detail_Title4
Page_number4
Row 5 Contains 2 bookmarks:
Agenda_Detail_Title5
Page_number5
Row 6 Contains 2 bookmarks:
Agenda_Detail_Title6
Page_number6
I have used the latest 23.1 version of Aspose.Words for Java.