documentcloud/docsplit — pull request #61 by evanj (2012-11-06 17:43:08+00:00)
Title: Ghostscript is needed to use docsplit with PDF files

The document doesn't specify that you need to install ghostscript. I suspect most Linux distributions install this by default for various Postscript/PDF rendering, but it doesn't get installed on Mac OS X. I listed it as an optional dependency, as maybe there are uses of docsplit that don't need it?

This is an "indirect" dependency: graphicsmagick is actually what uses this.

Example error message with ghostscript:

execvp failed, errno = 2 (No such file or directory)
gm convert: "gs" "-q" "-dBATCH" "-dMaxBitmap=50000000" "-dNOPAUSE" "-sDEVICE=ppmraw" "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4" "-r150x150" "-dFirstPage=1" "-dLastPage=1" "-sOutputFile=/var/folders/7f/_bn7l9zs7c7d_v15pgf8yr5m0000gn/T/d20121106-64573-1o6ttz4/gmxUt13R" "--" "/var/folders/7f/_bn7l9zs7c7d_v15pgf8yr5m0000gn/T/d20121106-64573-1o6ttz4/gm3lF7D8" "-c" "quit".
gm convert: Postscript delegate failed (/var/folders/7f/_bn7l9zs7c7d_v15pgf8yr5m0000gn/T/tmpPs0VPq/509948e93e091afc3ab1e1c9/original.pdf).