I have encountered multiple shapes while reading IDML spreads. Each Shape has it's own geometry that looks like -
-<PathGeometry>
-<GeometryPathType PathOpen="false">
-<PathPointArray>
<PathPointType RightDirection="-611.5 1548.5" LeftDirection="-611.5 1548.5" Anchor="-611.5 1548.5"/>
<PathPointType RightDirection="-611.5 2339.5" LeftDirection="-611.5 2339.5" Anchor="-611.5 2339.5"/>
<PathPointType RightDirection="-533.3 2339.5" LeftDirection="-533.3 2339.5" Anchor="-533.3 2339.5"/>
<PathPointType RightDirection="-533.3 1548.5" LeftDirection="-533.3 1548.5" Anchor="-533.3 1548.5"/>
</PathPointArray>
</GeometryPathType>
</PathGeometry>
For rectangles it is trivial (as in the example above), where each attribute in a <PathPoint>
element points to an end point in the rectangle. What happens with other shapes? In other words, what do RightDirection, LeftDirection and Anchor attributes signify? Is there a way to determine what shape it is looking at the PathPointArray?
Thanks.