Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Server Developers
Viewing all articles
Browse latest Browse all 20709

Y coordinate of top left anchor point issue

$
0
0
I'm writing a Java app against the prerelease version of InDesign Server CS4.
To retrieve the coordinates top left anchor point of a page item I use the following code:

topLeftCoordinate = this.idsPageItem.resolve(
VariableTypeUtils.createEnumeration(kAnchorPointTopLeftAnchor.value),
kCoordinateSpacesSpreadCoordinates.value,
OptArg.noBoolean());
double originX = topLeftCoordinate.asList()[0].asList()[0].asDouble();
double originY = topLeftCoordinate.asList()[0].asList()[1].asDouble();

The X coordinate is returned correctly, but the Y coordinate seems to be relative to the center of the page! If I add half of the page height to originY I get the value I expect.

Is there a logical explanation for this behavior?

Thanks in advance.

Viewing all articles
Browse latest Browse all 20709

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>