Web Design

Categorized | cli

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

Author Profile

T4L ;

Other posts by T4L

Author's web site



Are you satisfied with this blog?
Why not subscribe our RSS Feed? you will always get the latest post.


2 Comments


  1. Just a slight correction in the first command, I think you meant:

    pdftoppm file.pdf file.ppm

    Thanks for posting the info!

    1
  2. Alice

    Hi Michael,

    Thanks for this - just what I needed.

    2

Leave A Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>