Save specific pages of PDF

In Preview on Mac I can go to File > Print > Range from 3 to 5, then save pages 3 to 5 in a new PDF.

Wondering if it's possible to do this with a Keyboard Maestro macro?

You could write a macro that does just what you described, using Keyboard Maestro's ability to push buttons (Range is a button) and type keystrokes:

print specific pages.kmmacros (4.5 KB)

The trick with the Press a Button action is to use the gear menu at the right to have it scan Preview; that returns the button names, and in this case, it was obvious which one to select.

This is really just a template for a macro—you'd probably want the page numbers in variables, and you'd probably want to open a specific document, etc. But this should get you started.

-rob.

1 Like