Skip to content

Instantly share code, notes, and snippets.

@adilsoncarvalho
Created May 4, 2013 17:31
Show Gist options
  • Save adilsoncarvalho/5518176 to your computer and use it in GitHub Desktop.
Save adilsoncarvalho/5518176 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