Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Is there a way to fine tune the resolution in the third command? Commented Feb 23, 2011 at 18:40
  • 1
    @Bruce: The manpage for pdftoppm says that you can specify the resolution by using the argument -r RES. The default is 150DPI so experiment with that to find one that you like. Commented Feb 23, 2011 at 22:04
  • 2
    You can merge the last two commands: pdftopnm doc.pdf | pnmcrop | pnmtopng > doc.png. Commented Aug 10, 2012 at 0:14
  • 1
    @egreg Minimal class? What minimal class? But seriously, this was written over 5 years ago (and a year before the "universal" question about the minimal class was asked) when I was young and naïve. In this modern era, I use the standalone class for this task. Anyway, I've editted it to use the empty page style instead. Happy now?? Commented Nov 15, 2016 at 18:07
  • 1
    @DiaaAbidou The correct command is pdftoppm (instead of pdftopnm). To install it, you can read How to install Poppler on Windows. Commented Jan 22, 2018 at 5:47