Search code examples
c#asp.net-mvc-3preview

File preview in MVC


I want to implement file preview for files in my ASP.NET MVC3 application.

I need to create preview for multiple type of files in my MVC project. Files includes: pdf, doc, docx, xsl, scv, txt, img, png, rtf, csv etc

My idea is to create class for each file type and render any of those files into set of images files that will be displayed to the user.

The solution needs to be HTML + Javascript only.

Any ideas what would be the best solution?


Solution

  • I have decided to use the approach to load any file create pdf and from pdf to img. I know its long process but its the best I could think of.