Skip to main content
rpriz
Participant
April 2, 2026
Question

script that can copy and paste all items on each page 8.5" to the right

  • April 2, 2026
  • 2 replies
  • 33 views

scenario…

multipage pdf at size 8.5 x 11 is placed at x0 y0 on 11x17 pages in indesign. Now every placed page needs to be duplicated or “stepped up to the right at x8.5 y0

so it look s like 2 of the same pages placed on an 11x17

 

looking for a script that can automate this copy and paste scenario for all pages

    2 replies

    rob day
    Community Expert
    Community Expert
    April 2, 2026

    Hi ​@rpriz , Are the page items on the left side really at exactly 0,0 X,Y? If they are this might work—there’s no error checking:

     

    var p = app.activeDocument.pages.everyItem().getElements()
    var pi
    for (var i = 0; i < p.length; i++){
    pi = p[i].allPageItems
    for (var j = 0; j < pi.length; j++){
    if ((pi[j].geometricBounds[0] && pi[j].geometricBounds[1]) == 0) {
    pi[j].duplicate([p[i].bounds[3]/2,0])
    }
    };
    };

    Before and after:

     

     

     

     

     

     

     

    rpriz
    rprizAuthor
    Participant
    April 2, 2026

    this looks like exactly what I need and yes they are at 0,0.

    I will try it out on Monday.

    Thank you!

    Mike Witherell
    Community Expert
    Community Expert
    April 2, 2026

    Why not place the PDF on an 8.5x11 setup as facing pages so that the spread (not page) is 11x17?

    Mike Witherell
    rpriz
    rprizAuthor
    Participant
    April 2, 2026

    I need two up of each page so that when this 300 plus page document is finished printing, I will have 2 fully collated books when cut in half.

     

    If I understand you correctly, I will have hand collate the pages your way.

    Mike Witherell
    Community Expert
    Community Expert
    April 3, 2026

    Why are you manually paginating the layout? That is something that the software does for you. Acrobat does that for you. Most all commercial printers do that for you.

    Mike Witherell