Created
September 16, 2023 02:09
-
-
Save ngekoding/b88eb2c2f2ba0217eac3380e0b24eb93 to your computer and use it in GitHub Desktop.
Iframe Document Preview with Google Docs and Ms. Office
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
<!-- Using Google Docs --> | |
<iframe | |
src="https://docs.google.com/gview?embedded=true&url=YOUR-FILE-URL" | |
style="width: 100%; height: 500px" | |
> | |
<p>Your browser is not supported.</p> | |
</iframe> | |
<!-- Using Ms. Office --> | |
<iframe | |
src="https://view.officeapps.live.com/op/embed.aspx?src=YOUR-FILE-URL" | |
style="width: 100%; height: 500px" | |
> | |
<p>Your browser is not supported.</p> | |
</iframe> | |
<!-- Note that YOUR-FILE-URL must be public accessible. --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment