To automate PDF processing, you need to grab the following first from your repository:
apt-get install git qpdf exiftool pdftk poppler-utils tesseract-ocr imagemagick-6.q16
Then, install PDF Ingest into a desired folder
git clone https://github.com/tezcatlipoca/pdf_ingest
Enter the followind folder:
cd pdf_ingest
mkdir DST
mkdir SRC
Put the files you wish to convert into SRC and type the following command:
./bulk
Wait until done, then you’re done! 🙂