documentcloud / docsplit

Break Apart Documents into Images, Text, Pages and PDFs
http://documentcloud.github.io/docsplit/
Other
831 stars 214 forks source link

Add `brew` command to installation part of gh-page. #19

Closed edtsech closed 13 years ago

edtsech commented 13 years ago

Merge it to gh-pages please.

rmoriz commented 12 years ago

maybe I'm blind but it could not find a word about installing ghostscript.

with homebrew it's just a:

brew install gs

if you miss it you'll run into strange errors like:

$ docsplit images file.pdf 
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/48/v3jpvqg155d2qfktth99_8t40000gn/T/d20111118-74368-tt7qud/gmLRjDk7" "--" "/var/folders/48/v3jpvqg155d2qfktth99_8t40000gn/T/d20111118-74368-tt7qud/gmjJ3knF" "-c" "quit".
gm convert: Postscript delegate failed (file.pdf).