Article View: adobe.scripting.indesign
Article #321Re: CS3 JS flag which page has empty frame
From: John_Kordas
Date: Thu, 26 Mar 2009 03:59
Date: Thu, 26 Mar 2009 03:59
16 lines
1347 bytes
1347 bytes
Thanks you both for your very useful code. For the moment I've decided to stick with RulerOrigin.pageOrigin; The page setup is A4 and I have a rectangle bleeding on the top,left and bottom. It is also sitting on a left hand page. What I'd like to do is extend the rectangle so that it become a double page rectangle. using var myBounds = myPages[j].rectangles.item(0).geometricBounds; myPages[j].rectangles.item(0).geometricBounds = [myBounds[0],myBounds[1],myBounds[2],(myBounds[3]+myBounds[3])]; the rectangle only extend to the edge of the page on the right To check I used: $.writeln(myBounds[2]+" "+myBounds[3]); which returned 301.999999999461 209.999999999936 Does geometricBounds only give the bounds within the page not outside.
Technical Details
Message-ID:
<59b83b3d.9@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b83b3d.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,5f85c25f887dafb2 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: John_Kordas@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: CS3 JS flag which page has empty frame Message-ID: <59b83b3d.9@webcrossing.la2eafNXanI> Date: Wed, 25 Mar 2009 20:59:02 -0700 References: <59b83b3d.-1@webcrossing.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit