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.