Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-26-2005, 07:18 AM   #1
Registered: Mar 2003
Location: Berkshire, England.
Distribution: SuSE 10.0
Posts: 299

Rep: Reputation: 32

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.
Old 07-26-2005, 09:02 AM   #2
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
Hmm - looks like it's POSSIBLE:
Old 07-27-2005, 05:12 PM   #3
Registered: Mar 2003
Location: Berkshire, England.
Distribution: SuSE 10.0
Posts: 299

Original Poster
Rep: Reputation: 32
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
combining pdfs RaI Linux - Software 1 09-09-2005 01:31 PM
Edit PDFs stry_cat Linux - Software 2 08-03-2005 07:23 PM
Creating compressed PDFs Yalla-One Linux - Software 1 03-02-2005 09:42 AM
printing pdfs irvken Linux - Software 1 05-20-2004 06:50 AM
Anybody else hate PDFs? scott_R General 29 01-07-2004 04:07 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration