3

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

Bhargav
  • 871
  • 1
  • 13
  • 24

2 Answers2

2

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
Baby Groot
  • 4,637
  • 39
  • 52
  • 71
user1887288
  • 35
  • 1
  • 7
  • It supports basic file formats like PDF and other media files. But I'm also looking for support to these document files: .doc, .xls etc. – Bhargav Mar 29 '13 at 10:04
0

Yeah can be done i am using it .

2 choices for multiple file types :

  1. Use Google doc viewer 5 simple fast some restrictions and free )

  2. Use Pdf.js which is very good at displaying pdf dynamically without making every page an image like Google viewer do ! , and you can search and select text and others amazing stuff , this is used on Firefox .

OR try paid services they have even a 3D view for document ;)

ucefkh
  • 2,509
  • 2
  • 22
  • 18