How to implement PHP / jQuery Online Document viewer?

Bhargav picture Bhargav · Feb 9, 2013 · Viewed 8.8k times · Source

My Application is developed in PHP Yii Framework. My Application has a private network module where members of the network can upload files for sharing among them. Right now I'm using Amazon S3 to save the files. Is there any way I can provide an option to generate Preview for these files so that the user can view them online before downloading the file.

Here is what I've come across in my Research:

Group Docs:
http://groupdocs.com/pricing/api-pricing. This is paid version and I'm not sure about the privacy of my documents. 

Zoho Docs
https://www.zoho.com/docs/
I'm not sure if they have an API to support the document viewing feature.

Google Drive(Formerly Google Docs)
https://developers.google.com/drive/
I'm not sure if I can only open the documents using Google Drive and not save to them on google drive.

These files are extremely private and security is of very high concern in my application.

If any one has any suggestions / thoughts for this scenario, please share them with me.

Thanks

Answer

user1887288 picture user1887288 · Mar 29, 2013

Please try this link it will help you

Document Viewer is a jQuery plugin that allows you to view several file formats directly in a web page. The file formats that Document Viewer supports are:

  • PDF Files
  • Text Files
  • Code – bsh, c, cc, cpp, cs, csh, css, cyc, cv, htm, html, java, js, m, mxml, perl, php, pl, pm, py, rb, sh, xhtml, xml, xsl, sql, vb
  • Images – png, jpg, jpeg, gif
  • Audio – mp3, m4a, oga, webma, fla
  • Video – m4v, ogv, ogg, webmv, flv,mpg, mpeg, mov, divx, avi