Skip to main content
Participant
August 26, 2016
Answered

Have multi page document and need to delete every other page. Document to big to delete each page seperately.

  • August 26, 2016
  • 4 replies
  • 13413 views

I have a multi page document (1,000's of pages) and need to delete every other page.  I can't figure out how to do this & I know it's doable.  I just don't have the time to delete this one page at a time.  Please help.

Correct answer Karl Heinz Kremer

If you have Adobe Acrobat DC Pro, you can create a custom command using the following JavaScript code to delete all even numbered pages:

// process document from the last page to the first page

for (var i = this.numPages-1; i>=0; i--) {

    if (i % 2) { // this will delete all even numbered pages

        this.deletePages(i);

    }

}

To learn about how you can create a custom command, follow the steps here: Create Custom Commands in Adobe Acrobat DC Pro - KHKonsulting LLC

If you want to delete all odd numbered pages, just change line #3 to this:

if (!(i % 2)) { // this will delete all odd numbered pages

If you are using an earlier version of Acrobat Pro, you can use an Action to accomplish the same. If you are using Adobe Acrobat Standard, you don't have access to the action wizard or custom commands, and you would have to write a folder level script to create a new menu item that can delete odd or even numbered pages.

4 replies

JR Boulay
Community Expert
Community Expert
February 19, 2025

[MOVED TO THE ACROBAT DISCUSSIONS]

Acrobate du PDF, InDesigner et Photoshopographe
Karl Heinz  Kremer
Community Expert
Karl Heinz KremerCommunity ExpertCorrect answer
Community Expert
August 27, 2016

If you have Adobe Acrobat DC Pro, you can create a custom command using the following JavaScript code to delete all even numbered pages:

// process document from the last page to the first page

for (var i = this.numPages-1; i>=0; i--) {

    if (i % 2) { // this will delete all even numbered pages

        this.deletePages(i);

    }

}

To learn about how you can create a custom command, follow the steps here: Create Custom Commands in Adobe Acrobat DC Pro - KHKonsulting LLC

If you want to delete all odd numbered pages, just change line #3 to this:

if (!(i % 2)) { // this will delete all odd numbered pages

If you are using an earlier version of Acrobat Pro, you can use an Action to accomplish the same. If you are using Adobe Acrobat Standard, you don't have access to the action wizard or custom commands, and you would have to write a folder level script to create a new menu item that can delete odd or even numbered pages.

Participant
March 25, 2022

I need to rotate every odd page to the right and every even page to the left, in a massive document...is there a way to select every other for both odd and even pages?

Participant
March 25, 2022

Aactually, nevermind. I figured out a different way to have the document scanned in

philippanmei
Participating Frequently
August 27, 2016

Open the page panel and select the pages that you want to delete it.. and press delete to the pages or click on deleted icon..

Thanks

try67
Community Expert
Community Expert
August 27, 2016

That's exactly what they don't want to do...

Bernd Alheit
Community Expert
Community Expert
August 26, 2016

What pages want you delete?