documentcloud/docsplit — pull request #59 by jamesalmond (2012-10-19 09:00:24+00:00)
Title: Uses crop box on PDF image creation. Fixes #58

Certain PDF formats leave whitespace surrounding the image extraction when GS uses the MediaBox size to extract the image of a page. This fix forces GM and therefore GS to use the CropBox size. Crop box support for GM was added in [1.3.13](http://www.graphicsmagick.org/NEWS.html#december-24-2011), but there's not detrimental effects to running it against older versions. It seems to fall back to the MediaBox (the original behaviour) if no CropBox is defined