问题
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