Create thumbnail image for PDF in Java
I'm looking for a Java library that will can take a PDF and create a thumbnail image (PNG) from the first page. I've already looked at JPedal, but its insane licensing fee is completely prohibitive. I am using iText to manipulate PDF files at the moment, but I believe it doesn't do thumbnail generation. I can use something like Ghostscript on the command line, but I'm hoping to keep my project all-Java if possible. FRotthowe PDF Renderer is a LGPL licensed pure-java library that makes this as simple as (taken from their example page): File file = new File("test.pdf"); RandomAccessFile raf =