Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have requirement of converting PDF pages to images. There is a background image with some text written, so when I save this as image only background image got saved.

Is there any software available for the same so that complete page can be converted to image?

share|improve this question
What if I want to convert a multipage pdf to a multipage tif file? –  To Do Nov 26 '12 at 14:03

7 Answers 7

up vote 32 down vote accepted
  1. Install imagemagickInstall imagemagick

  2. Using a terminal where the pdf located:

    convert file.pdf file.png (.png or .jpg or any other format).

share|improve this answer
A simple convert creates really shitty quality for me. Use pdftoppm (thanks to enzotib below!). –  dAnjou Jan 9 '13 at 0:17
The answer as is does work but the resolution is very poor. Therefore not currently an answer that is useful. Maybe if convert has some parameters that can be specified this could change. –  Elijah Lynn Jan 16 at 19:57
This answer is much higher quality askubuntu.com/a/50180/11929 –  Elijah Lynn Jan 16 at 20:06

In the poppler-utils packages there is the utility pdftoppm capable of converting pages from a pdf file to ppm, png or jpeg format:

pdftoppm -png file.pdf prefix

will produce prefix-01.png etc. for each page. By default the resolution is 150dpi. Increase the resolution (for higher quality output) as follows:

pdftoppm -rx 300 -ry 300 -png file.pdf prefix
share|improve this answer
Thank you so much. Much better quality than with imagemagick or graphicsmagick! –  dAnjou Jan 9 '13 at 0:18
pdftoppm is much faster than convert –  zuo Nov 6 '13 at 4:52
This is so great! +1 –  Ionică Bizău Jun 6 '14 at 11:38
with only one pdf in a folder the specific name of the pdf file is not needed: pdftoppm -png *.pdf prefix –  cipricus Nov 10 '14 at 13:36

IIRC GIMP is capable of using PDFs, i.e. converting them into images. So if you want to edit the images right away - GIMP is your friend.

share|improve this answer

You can use convert and specify a higher density using -density option.

eg. convert -d 300 foo.pdf bar.png

share|improve this answer
can you explain more about what is density and what It can do? –  Raja Jul 24 '14 at 4:03
@AgentCool It specifies the horizontal and vertical image density (in ppi). –  Arjun Jul 27 '14 at 10:02

Try this online free document converter Saaspose.PDF, it can not only convert your PDF to any image abut also to many other formats and also its a cloud API so there is no need to download or install it just sign up on the site upload your document and convert it into the desired format.

share|improve this answer

Master PDF Editor (ver 2.2) has this option buit in. Open the PDF file and then go to File> Export to> Images. It presents a dialog where you can define different options for the output. Extremely useful. Hope this info helps.

share|improve this answer

If you only want to convert a specific page of a PDF to a PNG, you can pipe pdftk to convert (described above) like this:

pdftk document.pdf cat 12 output - | convert - document-page-12.png
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.