我与知道链接的任何人共享了 Google Drive 上文件的链接,但由于某种原因我的 PDF 没有显示。它适用于其他人的 Google 云端硬盘链接,但不适用于我的链接。
我尝试在 Google 云端硬盘的用户界面上与整个互联网共享它,但没有任何改变。只是一个空白页。
<!-- 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,但我看到的只是一个空白页。
这是 My Page不工作。
最佳答案
将 URL 与 /preview
一起使用,而不是像您的示例中那样使用 /view
;
https://drive.google.com/file/d/{fileId}/preview
关于javascript - Google 云端硬盘未加载 pdf 链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57048935/