Skip to content

Instantly share code, notes, and snippets.

@mrsweaters
Forked from adilsoncarvalho/docsplit-install.sh
Last active August 29, 2015 14:26
Show Gist options
  • Save mrsweaters/a8446de0e23cff8689f1 to your computer and use it in GitHub Desktop.
Save mrsweaters/a8446de0e23cff8689f1 to your computer and use it in GitHub Desktop.
Installing Doc Split on Ubuntu/MacOS
#!/bin/bash
if [ $(uname -s) == "Darwin" ]; then
brew install graphicsmagick
brew install poppler
brew install ghostscript
brew install tesseract
wget -o ~/Downloads/pdftk_server-1.45-mac_osx-10.6-setup.pkg http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-1.45-mac_osx-10.6-setup.pkg
open ~/Downloads/pdftk_server-1.45-mac_osx-10.6-setup.pkg
else
sudo aptitude -y install graphicsmagick poppler-utils \
poppler-data ghostscript tesseract tesseract-ocr \
pdftk
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment