Copy link to clipboard
Copied
After extracting the IDML file, I checked the `TextFrame` elements in the `Spreads.xml` file.
However, when I calculate the position using a matrix, I get negative values.
The document size and the `TextFrame` size are calculated correctly, but I’m not sure how to properly calculate the position.
Can you help me with this?
* I am using Python.
<Title renamed by MOD>
Copy link to clipboard
Copied
.
Copy link to clipboard
Copied
Hi,
Coordinate spaces in IDML are detailed in the specification. The origin of the Spread space is its center point:
Then you use ItemTransform and PathGeometry elements to get space-relative coordinates, in pt.
Best,
Marc