File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes PDF to Image Converter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "PDF to Image Converter" Watch "PDF to Image Converter" New topic

PDF to Image Converter

Tyler Scott Alexander

Joined: Dec 05, 2006
Posts: 2
Hey guys,
I'm going crazy here. I'm hoping some of you have dealt with this in the past. I'm looking for a decent PDF to PNG(or JPEG) rasterizer that runs on Linux. I'm not too concerned about the licensing. Any product would be ideal.

Thanks in advanced,
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42954
You could first render the PDF into a Java component:

And then render that Java component into a BufferedImage, which you can scale and save to a JPEG or PNG file (the javax.imageio.ImageIO class can handle the last part).
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

The magick image-converter of choice is - of course - convert from the Image-Magick package, most probably available for your preferred linux flavour.

produces XY-0.png .... XY-27.png for me for a 27 pages PDF.

Correction: 28 pages.
[ February 13, 2008: Message edited by: Stefan Wagner ]
I agree. Here's the link:
subject: PDF to Image Converter