LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   PDFs in PHP (https://www.linuxquestions.org/questions/programming-9/pdfs-in-php-346884/)

Spudley 07-26-2005 07:18 AM

PDFs in PHP
 
Hi there,

I've been given an interesting challenge.

We have a web site which includes a number of PDF documents that are made available for download. These documents are added to the site using a PHP page that uploads them and creates a database entry for them.

So far, so normal. But this is where the interesting bit starts....

The client wants the upload program to create a thumbnail image of the first page of the PDF, which would then be used on the site when showing the available documents.

I know how to create a PDF document from within PHP, but reading it in and thumbnailing the first page is an entirely different proposition.

I've looked around all the usual places, but I can't find any reference to it, let alone how to do it.

So does anyone know how to do this? ... or whether it's even possible?

Please let me know.

Thanks for any help. :)

pnellesen 07-26-2005 09:02 AM

Hmm - looks like it's POSSIBLE:

http://answers.google.com/answers/threadview?id=134543

Spudley 07-27-2005 05:12 PM

Thank you :) That was very helpful... that link got me going in the right direction, and I've got it working now. Thanks for your help.

The discussion on the site you linked there made it sound like quite a tricky task, but a bit of experimentation after reading it and following links, and it turns out it's actually a lot easier than they've made it sound.


All times are GMT -5. The time now is 09:14 AM.