Re: What method is best for generating thumbnails in PHP from PDF's?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris Payne wrote:

> Hi Everyone,
> 
> I have been asked to create thumbnails from the first page of a PDF
> document on the fly with PHP, I have looked online but am confused as
> there doesn't seem 1 simple solution.
> 
> What would you all recommend as an easy way to do this?
> 
> Any help would be really appreciated.

I think I would just call an external program to do it, like "convert" 
from Image Magick:

exec("convert -thumbnail 300x300 document001.pdf[0] thumbnail001.png");


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux