Hi I followed the instructions for using pdftoppm in the terminal so as to convert a pdf to an image.

I tried:

pdftoppm -png file.pdf prefix

I also tried it with the resolution parameters rx etc.... and also as it was the only pdf in the directory I read further down in the thread that you don't even have to put the name. So tried all of this and just kept getting poppler returning all the options and parameter choices as if I typed pdftoppm --help which of course i hadn't. What is going on?

All I want to do is convert a bloody image so i can insert it into a cell in an excel spreadsheet.

1 Answer 1


pdftoppm creates output files in the directory where You run it. So if You simply open a terminal, You always start at Your home directory. This:

user@pc:~$ pdftoppm -png file.pdf prefix

should create png file(s) in home directory (~ is the same as /home/user) with name(s) starting with prefix.

I've just checked it on my machine (Xubuntu 15.04) - it works like a charm.

  • 1
    Can we able to specify the output folder in command line? Sep 25, 2015 at 17:24
  • 1
    @PankajBadukale Just change prefix to full path to destination folder. Sep 28, 2015 at 17:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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