Embedded Google Docs PDF viewer displays login page rather than PDF

♀尐吖头ヾ 提交于 2019-12-31 01:43:09

问题


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>

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

For many/most of my users, the Google PDF Doc viewer appears and displays the referenced 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.


回答1:


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.

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



来源:https://stackoverflow.com/questions/3882999/embedded-google-docs-pdf-viewer-displays-login-page-rather-than-pdf

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!