Page 1 of 1
pdf preview ...
Posted: Thu May 17, 2007 3:47 pm
by Kami
Hi, I would like to list some pdfs files from a directory and generate some thumbnails to preview them !
How can I create an image from a pdf (only the first page) ?
What's the best way ?
Thanks
Posted: Thu May 17, 2007 8:30 pm
by califdon
Maybe somebody else will have an easy way to do it, but I would suggest creating a .jpg file of the first page of each .pdf document, using screen capture.
Posted: Fri May 18, 2007 4:28 am
by stereofrog
ghostscript (
http://www.cs.wisc.edu/~ghost/doc/GPL/index.htm) is an open-source command-line tool that can, among other things, create jpg images from pdf files. Just invoke it from php via exec().
Posted: Fri May 18, 2007 8:09 am
by Kami