Batch convert pdf to jpg in Linux terminal find . -maxdepth 1 -type f -name '*.pdf' -exec pdftoppm -jpeg {} {} \;