html - 如何在 iframe 中查看 Google drive pdf 链接

标签 html pdf iframe google-drive-api

我需要查看嵌入了谷歌驱动器链接的 pdf 文件并在 iframe 中查看链接。

我试过以下代码:

<iframe src="https://drive.google.com/viewerng/viewer?url=https://library.osu.edu/assets/Documents/SEL/QuickConvertWordPDF.pdf" width="400px" height="300px"  />

提前谢谢..

最佳答案

试试这个..

<iframe src="https://drive.google.com/viewerng/viewer?
url=https://library.osu.edu/assets/Documents/SEL/QuickConvertWordPDF.pdf?
pid=explorer&efh=false&a=v&chrome=false&embedded=true" width="400px" height="300px"  />

关于html - 如何在 iframe 中查看 Google drive pdf 链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27685943/

相关文章:

pdf - 将Word文档转换为不需要安装Office的PDF的最佳程序/API是什么?

javascript - AngularJS:$http.get方法下载pdf文件

javascript - 是否可以在 iframe 中使用类似 Facebook 的按钮?

javascript - 上一个/下一个 Javascript 字符串处理?

javascript - 如何在 iframe 标签中添加谷歌地图

html - 当屏幕变得可滚动时奇怪的 css 行为

PHP:调用字符串上的成员函数 contains()

html - parent 高度自动的 child 的动态高度

javascript - 使用Jquery获取表中可编辑td的值

从 LaTeX 源创建 PDF 的 Java 库