Last active
February 1, 2024 14:18
-
-
Save hsleonis/7edead8c871f0b12c8ee82bfbfa045a7 to your computer and use it in GitHub Desktop.
Google Doc Viewer Iframe at any website
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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> |
@suhail742 Try using https://docs.google.com/gview?url="url"&embedded=true
Perhaps you document is on a private network server
Iframe:
https://docs.google.com/viewerng/viewer?url=https://complabs.s3.ap-south-1.amazonaws.com/Apple+Store+(India)+License.pdf&hl=en&embedded=true
External Link:
https://docs.google.com/viewerng/viewer?url=https://complabs.s3.ap-south-1.amazonaws.com/Apple+Store+(India)+License.pdf&hl=en&embedded=false
Try This. It will work on Iframe and External Link also. NOTE: The License is an example. Please do not consider anything to it.
document is opening in second time
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
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");