谷歌文档嵌入预览器是否已结束测试版?它是否有 API?
https://docs.google.com/viewer 很棒,但我需要进行一些自定义make 和文档会很有帮助。发现于此处 http://googlesystem.blogspot.com... 。还没有看到任何有帮助的公共文档。
http://code.google.com/apis/documents/overview.html 涵盖了 Google 文档 - 其中以上内容更多的是 Google 图书预览器 http://books.google 的克隆。 com/books 。
https://docs.google.com/viewer is awesome, but there are some customizations I need to make, and documentation would be helpful. Discovered here http://googlesystem.blogspot.com... . Haven't seen any public documentation that would help.
http://code.google.com/apis/documents/overview.html covers the Google docs - where the above is more a clone of the Google Books previewer http://books.google.com/books .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Google 文档查看器嵌入已经有一段时间了。 此处有说明。
您只需将参数
&embedded=true
添加到典型查看器页面的 URL,即可将 PDF、PPT、TIFF 甚至某些 DOC 嵌入到iFrame
中。因此,要在http://example.com/file.pdf
嵌入 pdf,您可以使用以下代码:(以这种方式格式化以显示尽可能多的 URL。)
Google docs viewer has been embeddable for some time. There are instructions here.
You can embed PDFs, PPTs, TIFFs, and even some DOCs in an
iFrame
by simply adding the parameter&embedded=true
to the URL of a typical viewer page. So, to embed a pdf athttp://example.com/file.pdf
, you could use the following code:(Formatted this way to show as much of the URL as possible.)
不幸的是,嵌入 Google 文档查看器有两个未解决的问题。第一个是 IE 的 cookie 问题(不确定是哪个版本,但不仅仅是 6),它要求用户更改设置,并且它为具有过期 google 帐户会话的用户显示登录页面。
IE 中的 Google 文档查看器
嵌入式 Google 文档 PDF 查看器显示登录页面而不是PDF
这些似乎尚未解决,并且会导致在面向最终用户的应用程序中认真使用文档查看器时出现问题。
Unfortunately there are two unresolved issues with embedding Google Docs Viewer. The first is a cookies issue with IE (not sure which versions but it's not just 6) that requires the user to change a setting and the fact that it shows a login page for users with expired google accounts sessions.
Google Docs viewer in IE
Embedded Google Docs PDF viewer displays login page rather than PDF
These appear to be unresolved and cause problems for any serious use of docs viewer in an end-user facing application.