Handle decoding "compact PDFs"

Some scanners encode PDFs by layering multiple images per page. In this
case, we want to use convert to get an image of the entire page, since
pdfimages will split each page into several individual files.