HanG321 Blog

[Java] PDF to JPG

http://forum.java.sun.com/thread.jspa?threadID=359395&start=30&tstart=0

Here is a quick test sample that I ran with for PDF to JPG conversion.
I only had to convert the 1st page, so if you wanted multi-pages you will have to adapt the above example.
I use the ImageIO and jpedal jars.

Quick overview.
give the decoder the filename of the pdf to open
Grab the 1st page, and resize it to a thumbnail version
save the image.