Convert a PDF into JPEG page images using pdftoppm from poppler-utils, then optionally zip the generated JPGs.
pdftoppm must be available in PATHpoppler-utils package before running the scriptspoppler-utils#Debian / Ubuntu: bash
sudo apt update
sudo apt install -y poppler-utils
Windows:
pdftoppm.exe available in your PATHwinget install -e --id oschwartz10612.Popplerchoco install popplerscoop install popplermacOS: bash
brew install poppler
scripts/pdf2jpg.shscripts/zip_jpgs.sh if neededbash
./scripts/pdf2jpg.sh input.pdf
./scripts/pdf2jpg.sh input.pdf 2 5
./scripts/zip_jpgs.sh input.pdf
./scripts/zip_jpgs.sh input.pdf /tmp/output.zip
scripts/pdf2jpg.sh#pdftoppm is installed and prints a poppler-utils install hint if notfirst and last page argumentsscripts/zip_jpgs.sh#basename-*.jpg files for the PDF${base}-jpgs.zip by default when no output path is suppliedpdftoppm naming convention, typically basename-1.jpg, basename-2.jpg, etc.