These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Odd and Even Pages

Will800
Registered: Oct 3 2011
Posts: 2

My office has scanned a large bundle of documents which I am reviewing on Acrobat. The originals were double-sided photocopies. The clerk in my office has scanned all the odd-numbered pages first, then the even pages. Is there is a quick way of re-arranging the pages in the PDF file so they are in the correct order? There are simply too many pages to drag and drop them individually using the page thumbnails.

My Product Information:
Acrobat Pro 10.1, Windows
KellyMcC
Acrobat 9ExpertTeam
Registered: Jul 11 2011
Posts: 389
This is something than can be scripted, but there is no built in Acrobat feature that will accomplish the merging of the files. If you could rename the files in a linear order (such as page_001.pdf, page_002.pdf), you could use File > Create > Combine Files into a Single PDF to make one document in the proper order.

Adobe Bridge has an excellent renaming features under Tools > Batch Rename (if you own the Creative Suite).

Kelly McCathran
Adobe Community Expert
Certified Technical Trainer+

try67
Expert
Registered: Oct 30 2008
Posts: 2398
That was a bit of a tricky one... but this code should do the trick:
  1. var middlePage = Math.ceil(this.numPages/2);
  2. if (this.numPages%2==0) {
  3. for (var i=0; (i+middlePage)<this.numPages-1; i++) {
  4. this.movePage(i+middlePage, 2 * i);
  5. }
  6. } else {
  7. for (var i=0; (i+middlePage)<this.numPages; i++) {
  8. this.movePage(i+middlePage, 2 * i);
  9. }
  10. }
Edit: I hope I understood correctly that you had all the pages in the same file (1, 3, 5, 2, 4, 6) and wanted to re-arrange them... If you have two separate files, one with the even pages and one with the odd, I have a script that will do that, here: http://try67.blogspot.com/2008/12/acrobat-combine-even-odd-pages.html

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

KellyMcC
Acrobat 9ExpertTeam
Registered: Jul 11 2011
Posts: 389
Wonderful response Gilad, thanks for posting :)

Kelly McCathran
Adobe Community Expert
Certified Technical Trainer+

Will800
Registered: Oct 3 2011
Posts: 2
Many thanks. Will try this and see how I get on!