Extract PDF pages

Extract any number of pages from a PDF file


Description

I was surprised with how little can be done with PDFs in Shortcuts, especially because PDF is a native format of the platform.

Printing is the native workaround to extract a page (or a selection of them), but it's hard to find if no one tells you about it. And you can't use it to get non-continuous pages.¹ So I decided to see what could be done with Shortcuts. The results are far from espectacular, but the shortcut may be useful in a pinch.

A Spanish version is also available.

(¹) Well, what do you know! Since releasing version 1.1.0 I've found out the system's printing dialog can be used to get non-contiguous pages. And it also creates PDFs if you pinch out!

What you can do

  • Extract any single page
  • Extract any range of pages
  • Extract any combination of ordered pages

And all this without losing resolution or access to the text of the PDF!

What you can't do

(²) I don't see a way to do these without converting the pages to images


Latest Release Notes

1.1.0 - May 12, 2020, 1:51 p.m.

v1.0.1: Fixed blank page at the end (thanks to @Kaartman for the heads up)
v1.1.0: Instead of directly saving the result to iCloud Drive, it shows it to the user (who can copy, share or save it in any place via the share sheet)


Past versions