EasyManua.ls Logo

Adobe 0046100128056 - InDesign - Mac - Page 70

Adobe 0046100128056 - InDesign - Mac
209 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER 5: Working with Page Items Resize and Reframe 70
The following script fragment shows how to use the reframe method. For the complete script, see
Reframe.
//Given a reference to a rectangle "myRectangle"...
var myBounds = myRectangle.geometricBounds;
var myX1 = myBounds[1]-72;
var myY1 = myBounds[0]-72;
var myX2 = myBounds[3]+72;
var myY2 = myBounds[2]+72;
myDuplicate = myRectangle.duplicate();
myDuplicate.reframe(CoordinateSpaces.innerCoordinates, [[myY1, myX1],[myY2, myX2]]);

Table of Contents

Related product manuals