谷歌文档嵌入预览器是否已结束测试版?它是否有 API?

发布于 2024-08-21 23:41:48 字数 569 浏览 9 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

孤单情人 2024-08-28 23:41:48

Google 文档查看器嵌入已经有一段时间了此处有说明。

您只需将参数 &embedded=true 添加到典型查看器页面的 URL,即可将 PDF、PPT、TIFF 甚至某些 DOC 嵌入到 iFrame 中。因此,要在 http://example.com/file.pdf 嵌入 pdf,您可以使用以下代码:(以

<iframe
src="http://docs.google.com/viewer?url=http://example.com/file.pdf&embedded=true"
style="width:500px; height:500px;"
frameborder="0">
</iframe>

这种方式格式化以显示尽可能多的 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 at http://example.com/file.pdf, you could use the following code:

<iframe
src="http://docs.google.com/viewer?url=http://example.com/file.pdf&embedded=true"
style="width:500px; height:500px;"
frameborder="0">
</iframe>

(Formatted this way to show as much of the URL as possible.)

软糖 2024-08-28 23:41:48

不幸的是,嵌入 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文