Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Script to reorder or rearrange or collate a document

New Here ,
Mar 02, 2018 Mar 02, 2018

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!

TOPICS
Acrobat SDK and JavaScript
473
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 02, 2018 Mar 02, 2018

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

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2018 Mar 03, 2018
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines