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
pdf preview ...
Moderator: General Moderators
- stereofrog
- Forum Contributor
- Posts: 386
- Joined: Mon Dec 04, 2006 6:10 am
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().
Thanks !stereofrog wrote: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().