代码之家  ›  专栏  ›  技术社区  ›  Jonathan Hendler

googledocs可嵌入预览器是否已经过beta测试,它是否有API?

  •  1
  • Jonathan Hendler  · 技术社区  · 15 年前

    https://docs.google.com/viewer 是很棒,但有一些自定义我需要作出,和文件将是有益的。在这里发现的 http://googlesystem.blogspot.com ... . 还没有看到任何有帮助的公开文件。

    http://code.google.com/apis/documents/overview.html 涵盖谷歌文档-其中以上是谷歌图书预览器的克隆 http://books.google.com/books

    2 回复  |  直到 15 年前
        1
  •  1
  •   Adam    14 年前

    谷歌文档浏览器 embeddable for some time here

    你可以将PDF、PPT、TIFF甚至一些文档嵌入到 iFrame 只需添加参数 &embedded=true 指向典型查看器页面的URL。所以,在 http://example.com/file.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。)

        2
  •  1
  •   Community CDub    7 年前

    不幸的是,嵌入Google文档查看器有两个尚未解决的问题。第一个问题是IE的cookies问题(不确定是哪个版本,但不仅仅是6个版本),它要求用户更改设置,并显示一个登录页面,供使用过期google帐户会话的用户使用。

    Google Docs viewer in IE Embedded Google Docs PDF viewer displays login page rather than PDF