How to find out the coordinates of pageitems
Hi,
I designed a demo file in Indesign with a rectangle.
Pagesize: 85mm x 55mm
Rectangle: x=42,375mm, y=27,458mm, width: 58,417mm, height=28,417mm
In the next step I did an idml export.
Spread.xml:
...
<Rectangle Self="ud8" ... ItemTransform="1 0 0 1 0 0">
<Properties>
<PathGeometry>
<GeometryPathType PathOpen="false">
<PathPointArray>
<PathPointType Anchor="-82.6496062992126 -39.893700787401585" LeftDirection="-82.6496062992126 -39.893700787401585" RightDirection="-82.6496062992126 -39.893700787401585"/>
<PathPointType Anchor="-82.6496062992126 39.65748031496063" LeftDirection="-82.6496062992126 39.65748031496063" RightDirection="-82.6496062992126 39.65748031496063"/>
<PathPointType Anchor="81.94094488188978 39.65748031496063" LeftDirection="81.94094488188978 39.65748031496063" RightDirection="81.94094488188978 39.65748031496063"/>
<PathPointType Anchor="81.94094488188978 -39.893700787401585" LeftDirection="81.94094488188978 -39.893700787401585" RightDirection="81.94094488188978 -39.893700787401585"/>
</PathPointArray>
...
I do not understand how to calculate the x, y coordinates which are shown in indesign!?
I tried to understand the matrix calculation which is described in the IDML reference on page 98. http://wwwimages.adobe.com/...ml-specification.pdf
| a b 0 | | x | | 1 0 0 | | -82.6496062992126 | | -82.6496062992126 |
| c d 0 | * | y | --> | 0 1 0 | * | -39.893700787401585 | --> | -39.893700787401585 |
| e f 1 | | 1 | | 0 0 1 | | 1 | | 1 |
😞 That does not correspond to the display coordinates in Indesign ( x=42,375mm, y=27,458mm)
Can anybody help?
THANKS!