@alexey.noskov Using the simple_word_doc_with_table_content_style.docx file, can you add bookmark to each cell by iterating through each row and print the LineBounds of each Bookmark using 22.8 and 24.5 version?
Layout dimensions for Bookmarks using 22.8
java.awt.geom.Rectangle2D$Float[x=77.65,y=93.4,w=24.018,h=20.9]
java.awt.geom.Rectangle2D$Float[x=281.45,y=93.4,w=24.674,h=20.9]
Line layouts count: 4
java.awt.geom.Rectangle2D$Float[x=281.45,y=93.4,w=24.674,h=20.9]
java.awt.geom.Rectangle2D$Float[x=406.1,y=93.4,w=22.014,h=20.9]
Line layouts count: 4
java.awt.geom.Rectangle2D$Float[x=406.1,y=93.4,w=22.014,h=20.9]
java.awt.geom.Rectangle2D$Float[x=522.75,y=93.4,w=0.0,h=20.9 ]
Line layouts count: 2
java.awt.geom.Rectangle2D$Float[x=77.65,y=114.8,w=93.316,h=13.799]
java.awt.geom.Rectangle2D$Float[x=281.45,y=114.8,w=58.037,h=20.9]
Line layouts count: 4
java.awt.geom.Rectangle2D$Float[x=281.45,y=114.8,w=58.037,h=20.9]
java.awt.geom.Rectangle2D$Float[x=406.1,y=114.8,w=84.482994,h=34.834]
Line layouts count: 6
java.awt.geom.Rectangle2D$Float[x=406.1,y=114.8,w=84.482994,h=34.834]
java.awt.geom.Rectangle2D$Float[x=522.75,y=114.8,w=0.0,h=34.834 ]
Line layouts count: 2
Layout dimensions for Bookmarks using 24.5
java.awt.geom.Rectangle2D$Float[x=77.65,y=93.4,w=24.018,h=20.9]
java.awt.geom.Rectangle2D$Float[x=281.45,y=93.4,w=24.674,h=20.9]
Line layouts count: 4
java.awt.geom.Rectangle2D$Float[x=281.45,y=93.4,w=24.674,h=20.9]
java.awt.geom.Rectangle2D$Float[x=406.1,y=93.4,w=22.014,h=20.9]
Line layouts count: 4
java.awt.geom.Rectangle2D$Float[x=406.1,y=93.4,w=22.014,h=20.9]
java.awt.geom.Rectangle2D$Float[x=77.65,y=114.8,w=93.316,h=13.799 ]
Line layouts count: 8
java.awt.geom.Rectangle2D$Float[x=77.65,y=114.8,w=93.316,h=13.799]
java.awt.geom.Rectangle2D$Float[x=281.45,y=114.8,w=58.037,h=20.9]
Line layouts count: 4
java.awt.geom.Rectangle2D$Float[x=281.45,y=114.8,w=58.037,h=20.9]
java.awt.geom.Rectangle2D$Float[x=406.1,y=114.8,w=84.482994,h=34.834]
Line layouts count: 6
java.awt.geom.Rectangle2D$Float[x=406.1,y=114.8,w=84.482994,h=34.834]
java.awt.geom.Rectangle2D$Float[x=72.0,y=150.134,w=0.0,h=20.9 ]
Line layouts count: 2
- Both versions have similar bookmark start and end except 3rd column of both first and second rows.
- The dimension value returned for 3rd column is differing between old and new version though they are placing the bookmark end at the same location (verified by adding the bookmark in old version and checked in new version, and vice-versa).
I noticed you were comparing the first row first cell for comparison in the above example, can you run the same comparison for 3rd column of first and second row. The bookmark end is not pointing to the right place.
PS: I verified the same with basic aspose.word code to add and retrieve bookmark linelayout.