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