| 
 Posted by gosha bine on 09/14/07 11:46 
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
 
[Back to original message] 
 |