Article View: adobe.scripting.indesign
Article #330Urgent: Duplicating rectangle to new page. Trouble in fixing the coordinates
From: Saranya_Harikrishnan
Date: Thu, 26 Mar 2009 12:58
Date: Thu, 26 Mar 2009 12:58
27 lines
1742 bytes
1742 bytes
Hi, Adobe Indesign CS3 Server Object model: Javascripting using extended toolscript version 5 Windows I have tried to duplicate a rectangle from a previous page, to a new page with the following code. var oldPage = myDocument.pages.item(0) var newPage = myDocument.pages.item(1) var oldPageRect = oldPage.rectangles; var newRecOnNewPage = oldpageRect.item(0).duplicate(newPage) the geometric coordinates of the the recatngle that was duplicated, one on the first page, (13.5, 35.0416, 23.5, 45.0416) However the duplicate rectangle on the second sheet, showed (13.5, 185.0416, 23.5, 195.0416)...(Please Note:The coordinates have not been exactly quoted) This made me think, that perhaps, the (0,0) of the page lies on the first page, and the second page is considered an appendage added to the first page, horizontally. I would like to know, how to disassociate the relative scale of the rectangle from the axis on the first page, and allow it to be considered as a new object lying on a x, y coordinate plane based on the second page alone. This is Urgent! Kindly help resolve Thanks in advance, Saranya Harikrishnan
Technical Details
Message-ID:
<59b86a3b.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,3e1a9cd424b1676e,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Saranya_Harikrishnan@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Urgent: Duplicating rectangle to new page. Trouble in fixing the coordinates Message-ID: <59b86a3b.-1@webcrossing.la2eafNXanI> Date: Thu, 26 Mar 2009 05:58:14 -0700 Lines: 34 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit