Html 开源和基于 Web 的 html5 文档查看器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4089970/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Open source and web based html5 document viewer
提问by Gandalf
Is there a free web based html5 document viewer?
有免费的基于 Web 的 html5 文档查看器吗?
采纳答案by Lou Franco
OpenOffice (or LibreOffice) can be run as a service that let's you stream documents to it and it can return other formats. PDF and Flash are definitely supported. I think it can also do HTML. It's not a full viewer -- just the HTML -- you would have to figure out how you want to display it on a page.
OpenOffice(或 LibreOffice)可以作为一项服务运行,让您可以将文档流式传输到它,并且它可以返回其他格式。PDF 和 Flash 绝对支持。我认为它也可以做 HTML。它不是一个完整的查看器——只是 HTML——你必须弄清楚你想如何在页面上显示它。
回答by martin
You could take a look at the DocumentCloud projectwhich has a bunch of components including an HTML5 Open Source Document viewer - NYtimes Document viewer- hosted on git (Apache license)
你可以看看DocumentCloud 项目,它有很多组件,包括一个 HTML5 开源文档查看器 - NYtimes 文档查看器- 托管在 git(Apache 许可)上
回答by Nitin Agarwal
Open source PDF HTML5 Viewer from Mozilla:
https://github.com/mozilla/pdf.js
来自 Mozilla 的开源 PDF HTML5 查看器:https:
//github.com/mozilla/pdf.js
回答by haylem
Huh... Google Docs, maybe?
嗯...谷歌文档,也许?
You're a bit vague on the requirements here, but by "document" I assume you mean text documents (.doc(x), .rtf, .txt), presentations or the occasional PDF file. In which case Google Docs does all of that well, and allows you to create files in its own format or upload them in their normal format.
你对这里的要求有点含糊,但我认为“文档”是指文本文档(.doc(x)、.rtf、.txt)、演示文稿或偶尔的 PDF 文件。在这种情况下,Google Docs 可以很好地完成所有这些工作,并允许您以自己的格式创建文件或以正常格式上传文件。
It's not entirely HTML5 (debatable buzzword, really), but it uses some.
它不完全是 HTML5(确实是有争议的流行语),但它使用了一些。
EDIT: following your clarification in a comment to your question, you could use Google Docs for that, it has an embedded viewer that you can put insert in web-pages. You'd need to have the files uploaded to a Google Docs account and then view them with that.
编辑:在您对问题的评论中进行澄清之后,您可以使用 Google Docs,它有一个嵌入式查看器,您可以将其插入网页中。您需要将文件上传到 Google Docs 帐户,然后使用该帐户查看它们。
- Embedding Spreadsheets
- Embedding Presentations
- Embedding a PDF File(assuming it would work similarly for documents)
EDIT2: Actually, you can (or at least used to be able to) embed files that are not even hosted on Google Docs, read this 2009 post on the Embeddable Google Document Viewer.
EDIT2:实际上,您可以(或至少曾经能够)嵌入甚至未托管在 Google Docs 上的文件,请阅读 2009 年关于Embeddable Google Document Viewer 的帖子。
回答by user680389
Check out Vuzit. It's free up to a certain point and supports cross-browser rendering with HTML5 http://www.vuzit.com
看看 Vuzit。它在一定程度上是免费的,并支持 HTML5 http://www.vuzit.com 的跨浏览器渲染
回答by smcdrc
Not open source, but it's brand new and the first HTML5 Document viewer - http://crocodoc.com/
不是开源的,但它是全新的,也是第一个 HTML5 文档查看器 - http://crocodoc.com/
回答by Jacob Rask
You could try Mozilla Firefox or Chromium, they are pretty well known and open source.
你可以试试 Mozilla Firefox 或 Chromium,它们都是众所周知的开源软件。