Google doc no preview available error

≡放荡痞女 提交于 2019-12-20 09:38:36

问题


I used the google doc to display the pdf file in web broswer. It was working fine before. Now it gives no preview available. Most of the time it gives the blank screen with no preview available but sometime it opens the pdf. However i noticed that if the size of the pdf is small, it works fine but if the size is a bit larger with 10-100 or more pages, the no preview is shown.

link:

https://docs.google.com/gview?embedded=true&url=http://trafficpolice.gov.np/traffic/uploadfiles/56a0e8156d4ea.pdf

code:

WebBrowser view = new WebBrowser();
view.setURL("https://docs.google.com/gview?embedded=true&url=http://trafficpolice.gov.np/traffic/uploadfiles/56a0e8156d4ea.pdf");

回答1:


I've just tried to encode the & character to %26 and worked fine for my case.




回答2:


I had the same problem, in my case, I enabled google drive api and add key attribute to my iframe:

WebBrowser view = new WebBrowser();
view.setURL("https://docs.google.com/gview?key=YOUR_API_KEY&embedded=true&url=http://trafficpolice.gov.np/traffic/uploadfiles/56a0e8156d4ea.pdf");

problem resolved after 1 day




回答3:


In my case, pdf file name contained '&' character. Once I removed the ampersand char, problem solved.

Hope it helps someone.




回答4:


Opening the URL in desktop chrome:




回答5:


Several things that may cause this:

  1. The browser you are using to upload these files.
  2. The size of the file you are uploading.
  3. Password/Permission of the files are set to private.

Quick Fix:

It has been noticed that most of the users who encounter this have been using Firefox (3.6.6 in particular). Try uploading your files using IE8 and clear your cache.

This issue has been further discussed here.



来源:https://stackoverflow.com/questions/36963331/google-doc-no-preview-available-error

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