Skip to content

Instantly share code, notes, and snippets.

@hsleonis
Last active February 1, 2024 14:18
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save hsleonis/7edead8c871f0b12c8ee82bfbfa045a7 to your computer and use it in GitHub Desktop.
Save hsleonis/7edead8c871f0b12c8ee82bfbfa045a7 to your computer and use it in GitHub Desktop.
Google Doc Viewer Iframe at any website
<!--
Parameters:
url: document url (encode the url if it containes parameters, etc.), must be publicly available
hl: language (ex: en, ar, bn etc.)
embedded: embededable link, value true/false [MUST be used true to show]
-->
<iframe src="https://docs.google.com/viewerng/viewer?url=http://show.pdf&hl=bn&embedded=true"></iframe>
Copy link

ghost commented Mar 20, 2019

Why it says Whoops! there was a problem displaying this image
And i didn't use iframe tag
I am using it through webView object inside an App directly wv.loadUrl("https://docs.google.com/viewerng/viewer?url="+content+"&hl=bn&embedded=true");

@j-alder
Copy link

j-alder commented Apr 18, 2019

@shahareldad
Copy link

Perhaps you document is on a private network server

@complabs28
Copy link

@jeetoodles
Copy link

document is opening in second time

@Mahadev358
Copy link

This API is safe?
it will store my document anywhere?

if i use this my doc will safe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment