【问题标题】:Documentation of google docs viewergoogle docs viewer 的文档
【发布时间】:2014-08-17 09:16:12
【问题描述】:

它看起来很奇怪,但我不知道要嵌入到我的网站中的 google docs viewer 的文档在哪里。 https://docs.google.com/viewer 这是我只能生成链接的链接。实际上我想增加或删除超时检查,因为我无法查看大尺寸的文件。这就是我现在正在做的事情

<iframe id="iframe1" src="www.urltopdf.pdf&embedded=true"width="1000" height="800" ></iframe>

大文件出现以下错误。

Sorry, it took too long to find the document at the original source. Please try again later.
You can also try to download the original document by clicking here.

【问题讨论】:

    标签: javascript html google-docs


    【解决方案1】:

    这是一个带有生成文档查看器链接的表单的页面:https://docs.google.com/gview

    [编辑] Google 可能已弃用此功能。

    在此页面中,您可能已经看到了一个非常少的文档,但我没有找到任何其他文档,并且在 developer.google.com 中搜索“gview”得到了 0 个结果。

    还有其他关于使用此查看器的 Joomla 或 Wordpress 插件的类似问题。

    作为此查看器的替代方案,如果您将这些文件托管在 Google 云端硬盘中,则可以使用 Google 云端硬盘的内置预览功能:

    <iframe src="https://docs.google.com/file/d/fileID/preview" width="640" height="480"></iframe>
    

    您可以通过点击,然后点击integrate element,从 Google Drive 中的任何预览文档轻松访问此内容。

    【讨论】:

    • Google 可能已删除此功能。我将编辑评论。否则,这可能是一个工作示例:&lt;iframe src="https://docs.google.com/file/d/0B9PHCu09NNa0VWl2cTlHbUV0M1k/preview" width="640" height="480"&gt;&lt;/iframe&gt;。将此粘贴到您的 URL 栏中,看看它是否适合您:data:text/html,&lt;iframe src="https://docs.google.com/file/d/0B9PHCu09NNa0VWl2cTlHbUV0M1k/preview" width="640" height="480"&gt;&lt;/iframe&gt;
    猜你喜欢
    • 1970-01-01
    • 2020-12-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多