gpt4 book ai didi

javascript - google docs 可嵌入预览器是否已经过测试版,它是否具有 API?

转载 作者:行者123 更新时间:2023-11-30 18:55:22 26 4
gpt4 key购买 nike

https://docs.google.com/viewer很棒,但是我需要进行一些自定义,文档会很有帮助。在这里发现http://googlesystem.blogspot.com ……还没有看到任何有帮助的公共(public)文件。

http://code.google.com/apis/documents/overview.html涵盖 Google 文档 - 以上更多是 Google Books 预览器的克隆 http://books.google.com/books .

最佳答案

Google 文档查看器已 embeddable for some time .有说明here .

您只需将参数 &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。)

关于javascript - google docs 可嵌入预览器是否已经过测试版,它是否具有 API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2286598/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com