Skip to main content
blacky_
Participating Frequently
July 27, 2018
Answered

Request for keyboard shortcut to extract pages

  • July 27, 2018
  • 4 replies
  • 12758 views

Sometimes I have the need to extract and save out certain page ranges from a multi-page PDF.

Currently I load the PDF in to Acrobat Pro DC, click Page Thumbnails, right-click in the frame and select 'Extract Pages...' to allow me to key in the page range I wish to extract. Once extracted in to a new document, I can save the new file and close it, returning back to the main PDF for further page extraction.

All the actions in my process can be done using the keyboard, except bring up the Extract Pages dialog. Can I request that a keyboard action be added for the Extract Page option?

Correct answer try67

It can be done using a script that adds a menu item (with a keyboard accelerator) that runs this command.

To do it create a .js file (let's call it MyTools.js) and save it under the following folder (assuming you're on a Windows machine):

C:\Program Files (x86)\Adobe\Acrobat <VERSION>\Acrobat\Javascripts\

Enter the following code in the file, save it and then restart Acrobat:

app.addSubMenu({ cName: "MyToolsShortcuts", cUser: "&Shortcuts", cParent: "Edit", nPos: 0});

app.addMenuItem({ cName: "MyExtractPages", cUser: "E&xtract Pages", cParent: "MyToolsShortcuts", nPos: 0, cExec: "app.execMenuItem(\"ExtractPages\");"});

Now, when you want to access this tool all you have to do is press Alt+E, S, X, or even just Alt+E, Enter, Enter (since these items are the first ones in the sub-menus).

4 replies

New Participant
March 12, 2025

Hi everyone, this still has not been resolved by Adobe (MAC) has it?
I am also urgently in need for such a shortcut, but do not have the necessary coding skills...

New Participant
October 1, 2024

This is the most annoying thing ever. Adobe is shoving AI and all kinds of other garbage into acrobat and doesn't even have a keyboard shortcut to pull up the dialogue window. I bet they have to hold 100 different meetings just to add the simplest function. Other PDF programs have this shortcut.

PDF Automation Station
Community Expert
September 3, 2024

You can also select the pages in Pages Panel and drag them to the desktop, creating a new file with those pages.

try67
try67Correct answer
Community Expert
July 27, 2018

It can be done using a script that adds a menu item (with a keyboard accelerator) that runs this command.

To do it create a .js file (let's call it MyTools.js) and save it under the following folder (assuming you're on a Windows machine):

C:\Program Files (x86)\Adobe\Acrobat <VERSION>\Acrobat\Javascripts\

Enter the following code in the file, save it and then restart Acrobat:

app.addSubMenu({ cName: "MyToolsShortcuts", cUser: "&Shortcuts", cParent: "Edit", nPos: 0});

app.addMenuItem({ cName: "MyExtractPages", cUser: "E&xtract Pages", cParent: "MyToolsShortcuts", nPos: 0, cExec: "app.execMenuItem(\"ExtractPages\");"});

Now, when you want to access this tool all you have to do is press Alt+E, S, X, or even just Alt+E, Enter, Enter (since these items are the first ones in the sub-menus).

blacky_
blacky_Author
Participating Frequently
July 27, 2018

Cool. Thank you!

Well I added your javascript file to the following location as I'm on macos.

/Applications/Adobe\ Acrobat\ DC/Adobe\ Acrobat.app/Contents/Resources/JavaScripts

I now see the Extract Pages menu item.

However, it doesn't have a keyboard shortcut associated with it, as you can see for the Undo and Redo options.

Maybe I need some extra javascript for macOS?

Thanks

try67
Community Expert
July 27, 2018

The code is the same for any platform.

Did you edit the code I provided in any way?