2 Replies Latest reply on Jul 27, 2017 4:01 AM by Ribnog

    Align group to page margin across the document




      I have some pages with a group in each one, I want to align to left margin all of them.


      I have this code:


      var myDoc = app.activeDocument;  
      var myGroup = myDoc.pages[0].groups.everyItem();  
      myDoc.align(myGroup, AlignOptions.LEFT_EDGES, AlignDistributeBounds.MARGIN_BOUNDS);


      But it works only on the first page. I tried to change to "pages.everyItem" but failed. What I have to do?


      Thank you in advance.