0 Replies Latest reply on Sep 24, 2015 7:50 AM by xmlapi

    Moving pages to new document - Wrong order

    xmlapi Level 1

      I have a InDesign Template that I data merge (this generates a new document). Some of the textframes have overset text which "flows" into new pages.


      Then I move all of the pages to an existing template like below (javascript):

      app.activeDocument.pages.itemByRange(0, app.activeDocument.pages.length - 2).move(LocationOptions.AFTER, masterTmpl.pages[11]);


      The problem is that all of the pages are in the wrong order when they are moved. Especially the "overset" pages. How do I move all the pages but keep the order?