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

5 Answers 5

up vote 26 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
    
You'd need to install imagemagick –  Capt.Nemo Jun 23 '11 at 10:38
10  
A simple convert creates really shitty quality for me. Use pdftoppm (thanks to enzotib below!). –  dAnjou Jan 9 '13 at 0:17

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 at 11:38

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

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

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? –  AgentCool Jul 24 at 4:03
1  
@AgentCool It specifies the horizontal and vertical image density (in ppi). –  user2631098 Jul 27 at 10:02

Your Answer

 
discard

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.