【问题标题】:How to Display pdf file in blogger which is already stored in the server如何在博客中显示已经存储在服务器中的pdf文件
【发布时间】:2014-07-30 10:23:13
【问题描述】:

我想在博客中显示 pdf url(例如:http://www.newforests.net/wp-content/uploads/2011/01/sample_pdf.pdf)而不在谷歌文档中上传。

如果我在 google docs 中上传相同的 pdf,并且如果我在 post html 中提供嵌入链接作为

<iframe height="500" src="https://drive.google.com/file/d/0B-A9jsNhASM9VmRra3J6WTZmZVU/edit?usp=sharing" width="750"></iframe>

我可以在 blogger 中看到 pdf 文件。它工作正常。同样,我想在博客中显示带有定义的服务器 url 的 pdf 文件,而不在驱动器中上传 pdf 文件。谁能帮帮我?

【问题讨论】:

    标签: pdf iframe blogger pdfview


    【解决方案1】:

    用您自己的 pdf 替换 Google Drive pdf 应该可以:

    <iframe height="500" 
    src="http://www.newforests.net/wp-content/uploads/2011/01/sample_pdf.pdf" 
    width="750"></iframe>
    

    【讨论】:

    • 谢谢 Appoorv,我之前试过这个,但我只看到预览和 pdf 没有加载,现在我发布了帖子并检查了它。它工作正常。谢谢。
    猜你喜欢
    • 2016-06-13
    • 2013-08-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-19
    • 1970-01-01
    • 1970-01-01
    • 2017-05-11
    相关资源
    最近更新 更多