Skip to main content

Creating preview images of files in java

1 reply [Last post]
sandeepk84
Offline
Joined: 2007-10-31
Points: 0

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 in the 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. How can I do this?

Expecting some help,

Thanks and regards,
Sandeep.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sandeepk84
Offline
Joined: 2007-10-31
Points: 0

Hi all,

I got this for pdf files by using PdfDecoder (from JPedal's 14_os_jpedal.jar)
How can I do the same for other file types? Are there any third parties which will
do this for all file types?

Please help
Sandeep.