Convert PDF to JPEG in Linux
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


