• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
generating jpeg of pdf file

#1
[eluser]ray73864[/eluser]
I wonder, is it possible using perhaps the Image Manipulation class to create a jpeg thumbnail preview of a pdf file.

Or is there an even better way of doing it?

#2
[eluser]Dave Rau[/eluser]
I'd highly recommend using phpthumb for this: http://phpthumb.sourceforge.net/

Just ftp some files to your site, setup the config file, set write permission to the cache/ folder and be on your way with JPGs of PDFs like this:

500x700px JPG, 80 quality:
Code:
<img src="/code/phpthumbs/phpthumbs.php?src=/home/file.pdf&w=500&h=700&q=80" />


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.