Convert PDF files to JPG using imagemagick

Written by
Date: 2012-01-12 16:10:00 00:00

A friend of mine called me today telling me he had to open a file that ended in PDF, but he was not able, I guided him to install Adobe reader on his Windows XP computer, but it was not easy as I was not watching the same screens he was, so I preferred to convert his PDF to JPG.

He sent me the file via email, and with this simple line on my Arch Linux computer I converted the three pages PDF file into three JPG files.

convert -density 300 file.pdf file.jpg

You will have to install imagemagick first on you system, in Arch Linux was as simple as:

pacman -S imagemagick

I'll visit my friend this weekend to install Adobe PDF readers in his computer.