View Single Post
  #1 (permalink)  
Old 07-04-2009, 01:34 PM
sandeepk84@gmail.com sandeepk84@gmail.com is offline
Member
 
Join Date: Oct 2007
Posts: 5
Rep Power: 0
sandeepk84@gmail.com is on a distinguished road
Default Creating preview images of files in java
Hi all,

How I can convert the first page of a file into an image?
My application allows users to upload files. To see it, as of now, users have
to download and see, which is hard to do.

So I need to create a preview image
of the uploaded file which can be of any type(PDF, doc, txt, xls, ppt, etc.).
How can I do this? I need to show only the first page of the file as an image.

For image files which are uploaded, I am showing a thumb nail size preview,
but for other file types I have to get a way. Even if the preview is not in the for of an image, it will be fine for me. My only aim is to show some content of the file to the user so that he will get an idea of the file. How can I do this?

Expecting some help,

Thanks and regards,
Sandeep.
Reply With Quote