Skip to main content
javorma
Participant
March 2, 2018
Question

Script to reorder or rearrange or collate a document

  • March 2, 2018
  • 2 replies
  • 526 views

Hello,

I'm looking for a script I could run in Adobe Acrobat X which will rearrange my document based on coma separated numbers in a variable.

For example, var Order = 1,4,7,2,5,8,3,6,9.  Let's say I have a 9 page document and I need page 1 first, then page 4, then page 7, then page 2, then page 5.. per the variable. I know I could just print it like this, but sometimes I have more pages than can fit, so I need the document sorted.  For example, 1,23,45,2,24,46,3,25,47,4,26,48,5,27,49,6,28,50,7,29,51,8,30,52,9,31,53,10,32,54,11,33,55,12,34,56,13,35,57,14,36,58,15,37,59,16,38,60,17,39,61,18,40,62,19,41,63,20,42,64,21,43,65,22,44,66.

Any help would be appreciated!

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
March 3, 2018

I've also developed something that lets you do that. You can also specify whole ranges, not just individual page numbers: Custom-made Adobe Scripts: Acrobat -- Extract Non-Sequential Pages

Thom Parker
Community Expert
Community Expert
March 3, 2018

You can download that exact tool from this subscription site: Move Pages Tool

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often