Adobe 0046100128056 - InDesign - Mac Manual page 70

Javascript
Table of Contents

Advertisement

C
5: Working with Page Items
Resize and Reframe 70
HAPTER
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]]);

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs5

Table of Contents