PDF to picture

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I seach the best way to convert the first page of a PDF file into a picture  
(png, jpeg ..)
In fact i have for the moment 1500 PDF files and i want that the user see  
the first page before use the link.

Re: PDF to picture

On 14.09.2007 13:14 Toto wrote:
Quoted text here. Click to load it


try ghostscript, a command line postscript and pdf renderer


it goes like this

exec("gs -q -sDEVICE=jpeg -dBATCH -dNOPAUSE -dFirstPage=1 -dLastPage=1  
-sOutputFile=output.jpg input.pdf 2>&1");

gosha bine

makrell ~ http://www.tagarga.com/blok/makrell
php done right ;) http://code.google.com/p/pihipi

Site Timeline