How To Split PDF Documents Into Single Pages Using Mac OS X

How To Split PDF Documents Into Single Pages Using Mac OS X

You have a multi-page PDF that you’d like to split into individual pages. Maybe you scanned a stack of paper intending to make it one PDF per sheet, but instead it went into one big PDF. Maybe you have some other reason.

You can buy software to do this, but there are options to split a PDF using the built-in tools of Mac OS X. You can think of this as a companion piece to How To Combine PDFs Using Mac OS X Automator.

Option 1: Use Preview To Split Pages

Preview.app (the application you use to view PDFs and images) has some document management tools under the hood.

To split a file into pages using Preview:

Open the file in Preview

If you don’t see a list of pages on the right-hand side, click the View Menu button on the left of the toolbar and choose Thumbnails.

Open Thumbnails in Preview
Open Thumbnails in Preview

You can click and drag each page to your desktop or to a Finder window. It will then copy that page to its own PDF.

If that doesn’t work for you, try this option to split in Preview using the clipboard.

Option 2: Use Automator To Split Pages

Much like combining PDF files to make one big one, you can split a PDF into separate pages using Automator.

There are a number of ways to do this of course, but in this example I will be making a Service. If you want to skip all this setup, I have attached my Service to the end of this post. It will hopefully work for you.

Ready? Here we go.

Start Automator

In Finder, go to Applications and then start Automator.

Choose Service

In the window that pops up, highlight Service and then hit Choose.

Automator Choose Service
Automator Choose Service

Set The Variable For The Original PDF(s)

At the top of the window at the right, change the Service receives selected dropdown to PDF files. I set the in dropdown to Finder.app. I haven’t tested it in other applications.

Now in the Library section on the left, click on Utilities and then find Set Value of Variable. Drag it to the main window on the right.

Drag Automator

In the Variable dropdown, choose New variable… and call it originalPDFs.

Here’s what the first rule looks like so far.

Automator Get Variable

Set The Variable For The Path Of The PDF

We are doing this step because of a weird way Automator works. It doesn’t make it easy to save the resulting PDF to the same folder as the original.

I could prompt the user to choose a path, but I wanted to make it automatic so we have to get a bit geeky.

Note: if you’re an Automator expert and know a better way to do this, please leave a comment!

Still in the Utilities section of the Library on the left, find Run AppleScript. Drag it to the main window under our last step.

In the Run AppleScript window, paste in this code:


on run {input, parameters}
set pathList to {}
repeat with itemNum from 1 to count of input
tell application "System Events"
copy POSIX path of (container of (item itemNum of input)) to end of pathList
end tell
end repeat
return pathList
end run

(Basically that is going through the PDFs that you are splitting and copying the folders that they are stored in.)

Now in the Utilities section of the Library, find our old friend Set Value of Variable and (you guessed it) drag it into the main window under our last step.

In the Variable dropdown, choose New Variable… and give your new variable a name of containerPath.

Here’s what these steps look like:

Automator Get Path

Split The PDFs

Now it’s time to do the splitting!

First, we want to get the list of PDFs that we had saved back in the first step.

In Library -> Utilities, drag Get Value of Variable to the main window under our last step.

In the Variable dropdown, choose originalPDFs.

Right under the Variable dropdown there is an Options button. Hit that and check Ignore this action’s input.

Now in Library on the right, choose PDFs. Find Split PDF and drag it under the last step.

In the Variable window at the bottom of your screen, find your containerPath variable. Drag it up on top of the Save Output dropdown.

I prefer to leave Output File Name as Same as Input Name, but it’s up to you.

Here’s what the last steps look like:

Automator Split PDF

Save The Service

Alright! You’re done! Here’s the entire rule:

Automator Entire Split Rule
Automator Entire Split Rule

Go to File > Save and give your new service a name. I’ll call mine PDF Split.

Use The PDF Split Service

You have just created a Service. This means that if you right-click a PDF in the Finder, you can split it right from there. Let’s try it.

Find a PDF on your Mac and right-click it. Choose the Services menu near the bottom. If all went well, you should see Split PDF (or whatever you called your Service) in the list. Choose it.

Automator Split Service
Automator Split Service

Once I chose mine, you can see that it automatically kicked out one PDF for each page, with “-pagex” appended to the name for each page.

Automator Split Results

Downloading The Service

As mentioned, if you don’t want to go through the hassle of setting this all up, you are welcome to use mine.

To use it, download the file to your computer and double-click it to Unzip it.

You want to move the file to the ~/Library/Services folder. It’s probably hidden for you, so the easiest way to get there is:

  • Go to a Finder window
  • Choose the Go menu and then Go to Folder…
  • Type or paste in ~/Library/Services

Once that window opens up, drag the SplitPDF.workflow file there.

Click Here To Download SplitPDF10.zip

[tve_fields_shortcode3]

About the Author

Brooks Duncan helps individuals and small businesses go paperless. He's been an accountant, a software developer, a manager in a very large corporation, and has run DocumentSnap since 2008. You can find Brooks on Twitter at @documentsnap or @brooksduncan. Thanks for stopping by.

Leave a Reply 195 comments

jay - November 5, 2021 Reply

Can you use the same method to break a document in 3 separate sections? I have a 12000 page pdf and wanted to break it up into 3 4000 page sections

AKE - January 12, 2021 Reply

The saga continues in 2021…thank you for this! I was searching for something to break up a 250 page PDF and this fit the bill and, as many others have commented, was easy to use.

Dane - August 4, 2020 Reply

That was awesome!

Nishant - May 25, 2020 Reply

worked like a charm!!! do you have any more such scripts

shin - March 5, 2020 Reply

Thanks for the post. Is there a way to save each pdf to jpg?

Ben - February 17, 2020 Reply

Thanks. Never thought such power exist in my mac.

Ermanno - July 11, 2019 Reply

Hello Brooks, Thank you so much for this.

I was wondering if you or anyone would know a way to edit the script to name each single page pdf with the page name (or PageLabel) of the page in the original multipage pdf?

That would be perfect!
Thanks!

    Roger Carruthers - July 12, 2019 Reply

    I don’t know how to change the script to do this, but what I’m currently doing to add leading zeros to the numbers, and which you could probably for your issue too, is using A Better Finder Rename ( https://www.publicspace.net/ABetterFinderRename/ ) after running the script.

    The demo version will let you change ten names at a time, but you’ll want to buy the full version, of course! 😉

ArtBot - May 9, 2019 Reply

Thank you for sharing. Great insights explained clearly. Very helpful!!

Silvesterfairchildzd - April 7, 2019 Reply

Thank you for this sharing, really helpful. I always use Acethinker PDF writer to split large PDF document into several smaller PDF files, free and works pretty well for me. You just need to open the original PDF file with the app, click edit and go for pages tab on right pane, select split document. You can then specify the page numbers for dividing the file. After completing the work, you can simply save the document by clicking the button in the File Menu. That’s all. Share it here.

Dominic - March 7, 2019 Reply

Thank you so very much! Very clear instructions and a ‘wow’ result!

PAM N STEWART - February 23, 2019 Reply

Thank you so much for the automator download! I was so frustrated! Pam

mart - January 26, 2019 Reply

Wow, this was just what I needed.
Great that you explain in a simple way how to realise the result.
The first time I used your download-file. Now I can make an automater-file myself.

Thanx Martin

Atif - September 18, 2018 Reply

Thanks a lot, this worked like a charm for a huge PDF.

ODETTE - July 5, 2018 Reply

Hi,

you’ve been an absolute lifesaver and I love this so much. So far though it has required me to bring my Mac around with me to split things, is there a way you can help me to adapt this to windows Actions. I’ve gotten as far as the AppleScript, which I’m not sure how to accomodate to windows.

I’d really appreciate your help.

stacy - July 2, 2018 Reply

It really works!!!thank you

nero - June 23, 2018 Reply

Awesome…worked on the first try!

Rob - June 21, 2018 Reply

loads of options here e.g. https://www.sejda.com/split-pdf-down-the-middle

Roger - June 1, 2018 Reply

Excellent!
The only thing that could make it better would be for pages to be numbered with zero padding – I’m using this with an app I’m developing that doesn’t sort properly without the leading zero’s for pages 1 – 9.
If there were a way to do this in Automator, I would love to know…

Alan - May 31, 2018 Reply

There’s a much easier approach. No one tried so far? Just a few seconds.

1. Open original pdf
2. click on print
3. select your page range
4. at the bottom left corner, select save as pdf
5. click print

    iji - April 2, 2019 Reply

    that does not work

Bruce - May 21, 2018 Reply

All of the pages in the split are black… ???

Caro - April 25, 2018 Reply

THANK YOU! Sooo useful

myradio - April 3, 2018 Reply

Hi Brooks,
Nice article, just a minor mistake, maybe just a typo:

Now in Library on the right, choose PDFs. Find Split PDF and drag it under the last step.

Should be

Now in Library on the LEFT, choose PDFs. Find Split PDF and drag it under the last step.

Simon - March 11, 2018 Reply

Deep thanks from a non-tech guy whose heart sank at the prospect of having to split out a full deck of playing card templates supplied as one pdf by the printer ….one by one for a custom graphics task….a rare moment of techno joy as 54 cards sprouted on my desktop in 1 second….aaahhh!

Thank You!

dantasdamiris - January 24, 2018 Reply

http://www.youtube.com/watch?v=CuQArPdsRxg

merge multiple PDF files into one PDF on Mac

Nigel - January 16, 2018 Reply

Brilliant! Thank you!

Vitalii Zurian - December 18, 2017