Cuts and converts the provided PDF file into multiple image files.
Requires ghostscript and graphicsmagick:
brew install graphicsmagick
brew install ghostscriptInstall the project:
git clone https://github.com/peterdee/pdf-cutter
cd ./pdf-cutter
nvm use 16
npm iRun the following script inside of the project directory:
npm start ~/path/to/file.pdfA new directory with the results of conversion is going to be created (named after a file)