Dear support team,
In the attached document there are on the first page, 1 groupShape and 2 regular shapes (a textbox with 4, and an arrow connecting the textbox). These regular shapes are NOT part of the groupshape.
Looking at the shapes in the document, and their positions; I would expect that the regular shapes are overlapping with the group shapes.
However when executing the attached program (ShapePositionOnPage), you can see that the resulting Rectangles are not even intersecting.
Looking at the coordinates of the rectangles for the textbox and the arrow, it seems to me that the X-coordinate is completely offset.
This is the output when printing the resulting rectangles
Groupshape Location: java.awt.geom.Rectangle2D$Float[x=47.4,y=101.995,w=513.0,h=562.75]
Textbox Location: java.awt.geom.Rectangle2D$Float[x=583.999,y=240.583,w=39.05,h=22.5]
Arrow Location: java.awt.geom.Rectangle2D$Float[x=610.399,y=251.781,w=100.5,h=30.0]
Maybe there is a problem in the way I used to retrieve the absolute location of these shapes/groupshapes on the page. If so, could you please clarify what is the correct piece of code to use.
I’m using aspose for words java 20.3.
Many thanks for your support
aspose-reporting.zip (92.2 KB)