The square rect defines top-left-x, top-left-y, bottom-left-x and bottom-left-y.
For a line it's left-x, left-y, right-x, right-y.
So if you want the line to be under the square, use the bottom values of the square to place the line.
Thanks for your reply, try67:
Could you -or anybody else- please clarify this:
"The square rect defines top-left-x, top-left-y, bottom-left-x and bottom-left-y.
For a line it's left-x, left-y, right-x, right-y."
According to such definition, the square rect does not contain any information about the right side?
Maybe what you meant to write is:
"The square rect defines:
top-left-x, top-left-y, bottom-right-x and bottom-right-y.
For a line it is
left-x, left-y, right-x, right-y."
If that's the case, a rect of zero height is the same thing as a horizontal line. That was my assumption, but I am getting a 45-degree line through the origin.
Yes, that's what I meant. Sorry for the mixup.
Maybe you should post your exact code.
"The Annotation Object also has a rect property. However, the coordinates are not in rotated user space and they are in a different order than in the Field Object rect property."