jQuery in Action, 3rd edition
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
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: 42965
You could first render the PDF into a Java component: https://pdf-renderer.dev.java.net/

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: http://aspose.com/file-tools
subject: PDF to Image Converter
It's not a secret anymore!