If you want to convert some PDF files in JPEG format in Linux, you can use pdftoppm and ppmtojpeg. After you installed the two applications, do a
ppm file.pdf file.ppm
The result will be a PPM file for each page in the PDF. From here, to convert all PPM files in JPEG format do a
for file in *.ppm; do ppmtojpeg $file > ${file/.ppm/.jpg}; rm $file; done
Just a slight correction in the first command, I think you meant:
pdftoppm file.pdf file.ppm
Thanks for posting the info!
Hi Michael,
Thanks for this – just what I needed.