26 May 2012

How to embed Google doc Viewer in website

Google Doc Viewer is an online website where you can view documents through your browser without any additional installation of plugins or software.
To embed this google doc viewer in your website , paste the following code :
<iframe src="http://docs.google.com/gview?url=http://infolab.stanford.edu/pub/papers/google.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>

Just change the url to your document link url to view.

Check this Sample Embedded document below :
Document Link: http://infolab.stanford.edu/pub/papers/google.pdf

(If you found this article useful then share with your friends.)

No comments: