Extracting pages from PDFs on OS X

XCode screenshot

I need to slice and dice a lot of images from a number of multi-page PDF files, but I don't happen to have the right bit of ImageMagick installed on my MacBook Pro. Instead, I took the slightly longer route of writing a utility to do it.