1 Reply Latest reply on Jul 24, 2013 2:55 AM by Laubender

    Getting incorrect coordinates, width/height of page-item in actionscript.

    poortip87 Level 1

      Hi,

       

      I am developing a Flex extension for InDesign CS5. I am trying to get the coordinates and width/height of a page-item. But, I keep getting incorrect data. Please refer screenshot. The coordinates as I see in the InDesign application are 38.8, 66.02, 117.5, 160.5.

      ind.jpg

       

      I used the geometricBounds method to get the coordinates and width/height, but I am getting 29.70, 40.26, 222.07, 178.11. Please refer the screenshot.

       

      flex.jpg

      I read somewhere that the coordinates can change with respect to the ruler settings, i.e., it depends on Ruler per Spread, Ruler per Page or Ruler on Spine. But, I couldn't find anything related to this with respect to actionscript.

       

      How can I get the coordinates and width/height that I see in the InDesign application through actionscript?

       

      Thanks!