How do I display a small picture of a .ppt file?

I have a site that allows people to upload powerpoint/PDF files, but when I show them a list of powerpoint & PDF files to download, I want to give them a small picture of what the first powerpoint slide/PDF page looks like.  I have seen sites that do this, but I do not know what code to use.

I am using JSP and an Oracle Db.

Can anyone give me some code that will show the first page of the file they are about to download?  They basically just need to know if they already have this one or not, so I need to show them a thumbnail of what the doc looks like.

Thanks
-MD
mderbinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TimYatesCommented:
The way they probably do it is with an ASP calling a COM object which can access COM document formats (Powerpoint) and get the thumbnail out...

http://www.codeproject.com/asp/thumbtools2.asp

Maybe that page and http://jacob-project.sourceforge.net/wiki/index.php/Main_Page could help?

Jacob is a COM/Java bridge project, which may allow you to call the COM objects talked about in the ASP tutorial...

Of course, this will only work on windows...

Tim
0
ss_pCommented:
have a look at this site

http://www.lowagie.com/iText/

Prasannaa
0
TimYatesCommented:
Does that load powerpoint presentations?
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

TimYatesCommented:
it didn't last time I looked...
0
mderbinAuthor Commented:
Isnt there just some simple JSP code that will allow me to get the thumbnail of the powerpoint doc on the fly?  I am pretty new to JSP, and I am not sure how the ASP tool will work within JSP?  I am hoping to access the name and path of a file on the server, then generate a thumbnail of the powerpoint file and display it right next to the file name so people can see what the file's first page looks like before they download it.

Does anyone have any code to do this?

Thanks,
-MD
0
TimYatesCommented:
I doubt it... you would need a java package which loads PPT files, and renders them to an image...

This is most likely going to require a microsoft product at some point
0
mderbinAuthor Commented:
Do you hvae any in mind that I could use/buy/whatever?  The client really wants this.  I just need to make it happen.

Thanks,
MD
0
TimYatesCommented:
Are you running the server on Windows?
0
mderbinAuthor Commented:
It runs on WebSphere.
0
TimYatesCommented:
on Windows?
0
mderbinAuthor Commented:
Yes, on Windows
0
TimYatesCommented:
Right, you will have to follow this tutorial here:

http://www.codeproject.com/shell/ThumbExtract.asp

to generate a COM object which can make thumbnails out of MFC document types (PPT being an MFC document type).  

You will then need to use Jacob (http://jacob-project.sourceforge.net/wiki/index.php/Main_Page) to call the COM object and get it to generate a thumbnail for a particular file

Not sure if that ThumbExtract tutorial specifically talks about PPT files (it looks to deal with Scribble files), but the process should be the same...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TimYatesCommented:
This VB project extracts the thumbnails out of PPT files too:

http://www.vbaccelerator.com/home/VB/Code/Libraries/Shell_Projects/Thumbnail_Extraction/article.asp

It seems that Powerpoint stores the thumbnail somewhere within the PPT file itself, and this VB app extracts that thumbnail...

So you should be able to wrap this VB app in a COM DLL object, and again, use Jacob to call the DLL via COM...

Tim
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.