Convert PDF to JPEG in Linux

By | November 7, 2008

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

2 thoughts on “Convert PDF to JPEG in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *