Trying to convert a spread/booklet page order to a normal page order.
I have a couple hundred documents that were originally booklets that were printed as stapled booklet, they have been cropped so that there is a single page per image I'm just trying to find an easy way to reorder the pages to be in the correct order than manually clicking and dragging over 3k images. I think it can be done with something similar to a reverse page order function I have since all the pages follow a set pattern, as in the first image is the last, and the second image is the first, then second to last, to second, and so on.
app.addMenuItem({ cName: "Reverse", cParent: "Document", cExec: "PPReversePages();", cEnable: "event.rc = (event.target != null);", nPos: 0
});
function PPReversePages()
{
var t = app.thermometer;
t.duration = this.numPages;
t.begin();
for (i = this.numPages - 1; i >= 0; i--)
{
t.value = (i-this.numPages)*-1;
this.movePage(i);
t.text = 'Moving page ' + (i + 1);
}
t.end();
}// JavaScript Document
is the code I am using to reverse the page order.
Any help would be appreciated.