Re: What method is best for generating thumbnails in PHP from PDF's?
| From: | O. Lavell | Date: | Thu, 12 Nov 2009 17:44:36 +0000 |
| Subject: | Re: What method is best for generating thumbnails in PHP from PDF's? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299790@lists.php.net to get a copy of this message | ||
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");