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

Deleting Pages Script

sorensq
Registered: Feb 12 2009
Posts: 11

I am in need of separating pages out of a file into their own files. I have to extract the pages to print each page individually. The job is a duplexed piece and so pages 1 & 2 are a single page after production. 3 & 4 are a single page after production. I have very large files that can be any number of sheets, currently the document I am working on is 576 pages.

Below is the sequence I see needed to be created.
First Page:
Page 1 / 2
Page 5 / 6
Page 9 / 10
Page 13 / 14
etc...

Second Page:
Page 3 / 4
Page 7 / 8
Page 11 / 12
Page 15 / 16
etc..

Is there any way to automate this process?

Thanks in advance!

Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi sorensq,

Yes you can automate this with a custom JavaScript. You should get the Acrobat JavaScript Reference and look up doc.extractPages. You could run the script from the Console Window on a single document. There is a nice tutorial here at AUC on using the Console Window at-
http://www.acrobatusers.com/tutorials/2006/javascript_console

and you can get the Acrobat JavaScript Reference from here-
http://www.adobe.com/devnet/acrobat/javascript.php

This could be developed into a single click toolbar button as with the Resize Pages tool you got from pdfscripting.com but it will require some hours of study to develop. There could be 3rd Party tools available that do this- try a Google search for those.

Hope this helps,

Dimitri
WindJack Solutions
www.windjack.com
www.pdfscripting.com