Excellent sdorra, thanks for your input.
I have re-work your example in order to convert all the pages from the pdf.
Hope that will help some of you guys.
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import javax.imageio.ImageIO;
import com.sun.pdfview.PDFFile;
import com.sun.pdfview.PDFPage;
public class Main {
public static void main(String[] args) throws IOException {
File pdfFile = new File("c:\\YOURPDF.pdf");
RandomAccessFile raf = new RandomAccessFile(pdfFile, "r");
FileChannel channel = raf.getChannel();
ByteBuffer buf = channel.map(FileChannel.MapMode.READ_ONLY, 0, channel.size());
PDFFile pdf = new PDFFile(buf);
for (int i=0; i
You can download the library from pdf-renderer-1.0.5.jar
The Source for Java Technology Collaboration website