Discussion: PDF to picture
Afficher un message
Vieux 14/09/2007, 12h46   #2
gosha bine
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PDF to picture

On 14.09.2007 13:14 Toto wrote:
> Hello,
>
> 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.
> thanks
>
>


hi

try ghostscript, a command line postscript and pdf renderer

www.ghostscript.com

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
  Réponse avec citation
 
Page generated in 0,05340 seconds with 9 queries