Google Document Viewer shows "No Preview Available"

msg picture msg · Mar 7, 2015 · Viewed 19.1k times · Source

I have used Google Document Viewer to open PDF files in my Android device. A black screen with "No Preview Available" text is shown, instead of opening my PDF files. I have tested with sample PDF files from Google. They are working fine, but not my PDF files. Is there anything that i need to do from code side to view my PDF.

http://docs.google.com/viewer?url=myurl.pdf

enter image description here

Answer

larry picture larry · Sep 26, 2016

Had a file that showed this problem. Renamed it to remove blanks in the file name, updated my link and it worked. Note that blanks were properly HTML encoded as %20 so this 'fix' shouldn't be necessary. But, I can't argue with success. Good luck.