7 Replies Latest reply on Jul 26, 2017 1:50 AM by Loic.Aigon

    Wrong frame size, Indd CS6 and CC, js

    Yuliascript Level 1



      Recently I started to have unusual problem: frames are not displayed in the size they are set in geometric Bounds. One page would do it correctly another would stretch the frame. One computer would do it correctly another would stretch. Any idea what is going on and how I can make it work:


      myTextBkg = myDoc.pages[0].rectangles.add (myDoc.layers.item ("Template"));
      myTextBkg.geometricBounds = [myY-.05045, myX-.4102, myY+0.05045, myX+0.4102];


      If myY = 1 in, and myX = 1 in,  I should have:


      myTextBkg.geometricBounds = [1-.05045, 1-.4102, 1+0.05045, 1+0.4102];


      myTextBkg.geometricBounds = [0.94955, 0.5898, 1.05045, 1.4102];



      Screen Shot 2017-07-25 at 12.18.59 PM.png


      Instead of this:


      Screen Shot 2017-07-25 at 12.17.19 PM.png



      Thank you for your help.