3

我的应用程序是在 PHP Yii 框架中开发的。我的应用程序有一个专用网络模块,网络成员可以在其中上传文件以在他们之间共享。现在我正在使用 Amazon S3 来保存文件。有什么方法可以提供为这些文件生成预览的选项,以便用户在下载文件之前可以在线查看它们。

这是我在研究中遇到的:

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.

这些文件非常私密,在我的应用程序中安全性非常重要。

如果有人对此方案有任何建议/想法,请与我分享。

谢谢

4

2 回答 2

2

请试试这个链接它会帮助你

Document Viewer是一种jQuery plugin允许您直接在网页中查看多种文件格式的工具。支持的文件格式Document Viewer有:

  • PDF文件
  • 文本文件
  • 代码– 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
  • 图像 – png、jpg、jpeg、gif
  • 音频– mp3、m4a、oga、webma、fla
  • 视频– m4v、ogv、ogg、webmv、flv、mpg、mpeg、mov、divx、avi
于 2013-03-29T07:09:21.593 回答
0

是的,我正在使用它。

多种文件类型的 2 种选择:

  1. 使用谷歌文档查看器 5 简单快速一些限制和免费)

  2. 使用非常擅长动态显示 pdf 的 Pdf.js,而无需像 Google 查看器那样将每个页面都变成图像!,你可以搜索和选择文本和其他令人惊奇的东西,这是在 Firefox 上使用的。

或者尝试付费服务,他们甚至可以查看文档的 3D 视图;)

于 2013-08-13T14:46:34.570 回答