Javascript 谷歌驱动器未加载pdf链接
我在谷歌硬盘上与任何拥有链接的人共享了该文件的链接,由于某种原因,我的PDF文件没有显示出来。它适用于其他人的谷歌驱动器链接,但不适用于我的链接 我试着在谷歌硬盘的用户界面上与整个互联网共享,但没有任何改变。只是一张空白页Javascript 谷歌驱动器未加载pdf链接,javascript,html,Javascript,Html,我在谷歌硬盘上与任何拥有链接的人共享了该文件的链接,由于某种原因,我的PDF文件没有显示出来。它适用于其他人的谷歌驱动器链接,但不适用于我的链接 我试着在谷歌硬盘的用户界面上与整个互联网共享,但没有任何改变。只是一张空白页 <!-- simple.html --> <!DOCTYPE html> <html> <head> <title>Google Drive not Working for Me</ti
<!-- simple.html -->
<!DOCTYPE html>
<html>
<head>
<title>Google Drive not Working for Me</title>
</head>
<body>
<object data="https://drive.google.com/file/d/10IcEechL2QV5enxoec-B5jhfCaJ9xkzU/view?usp=sharing" width="600" height="750">
<embed src="https://drive.google.com/file/d/10IcEechL2QV5enxoec-B5jhfCaJ9xkzU/view?usp=sharing" width="600px" height="750px" />
<p>This browser does not support PDFs. Please download the PDF to view it: <a href="https://drive.google.com/file/d/10IcEechL2QV5enxoec-B5jhfCaJ9xkzU/view?usp=sharing">View the PDF</a>.</p>
</embed>
</object>
</body>
</html>
谷歌硬盘不适合我
此浏览器不支持PDF。请下载PDF以查看:
我想看我的PDF,但我看到的只是一个空白页
<!-- simple.html -->
<!DOCTYPE html>
<html>
<head>
<title>Google Drive not Working for Me</title>
</head>
<body>
<object data="https://drive.google.com/file/d/10IcEechL2QV5enxoec-B5jhfCaJ9xkzU/view?usp=sharing" width="600" height="750">
<embed src="https://drive.google.com/file/d/10IcEechL2QV5enxoec-B5jhfCaJ9xkzU/view?usp=sharing" width="600px" height="750px" />
<p>This browser does not support PDFs. Please download the PDF to view it: <a href="https://drive.google.com/file/d/10IcEechL2QV5enxoec-B5jhfCaJ9xkzU/view?usp=sharing">View the PDF</a>.</p>
</embed>
</object>
</body>
</html>
这不管用
这里是使用带有
/preview
的URL,而不是像您的示例中那样使用/view
https://drive.google.com/file/d/{fileId}/preview