嵌入式Google文档PDF查看器显示登录页面,而不是PDF [英] Embedded Google Docs PDF viewer displays login page rather than PDF

查看:78
本文介绍了嵌入式Google文档PDF查看器显示登录页面,而不是PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页,其中将Google文档查看器嵌入到iFrame中

I have a Web page in which I embed a Google docs viewer in an iFrame

<iframe src="http://docs.google.com/viewer?url=URL-encoded-URL&embedded=true" width="750" height="960" style="border: none;"></iframe>

(其中URL-encoded-URL是实际的编码URL).

(where URL-encoded-URL is an actual encoded URL).

对于我的很多/大多数用户,都会出现Google PDF文档查看器并显示引用的PDF.

For many/most of my users, the Google PDF Doc viewer appears and displays the referenced PDF.

但是我的一些用户却看到带有登录框的Google文档页面.我不知道为什么会这样.有人听说过这种情况吗?更重要的是,知道原因,以及如何做才能确保显示PDF.

But some of my users instead see the Google Docs page with the login box. I've no idea why that happens. Has anyone heard of this happening? And more important, know why, and what can be done to ensure the PDF is shown.

推荐答案

我第二次对Zhami的问题发表评论.当您(用户)拥有一个登录名已过期的Google帐户时,就会发生这种情况.登录页面显示他们电子邮件:"字段已经填写了您的电子邮件,但要求您输入密码.如果您随后单击更改用户",则电子邮件字段将返回为空,然后您可以返回到iframe页面,您将看到该文档.

I second Zhami's comment on the question. This happens when you (the user) has a google account whose login has expired. The login page shows them Email: field already filled in with your email but asks for your password. If you then click on "change user", the email field goes back to empty and then you can go back to the iframe page and you will see the document.

我想也许我们可以说这是一个Google bug?

I think maybe we can say this is a google bug?

这篇关于嵌入式Google文档PDF查看器显示登录页面,而不是PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆