How To Embed PDF File Using Google Doc Viewer On Your Blog Or Website

Hi! Everyone, hope you all are fine.
Toda in this post I will tell you how you can embed any PDF document using Google Docs viewer. Before I told you how you can embed PDF files in using direct iframe and and embed tag but it seems that now it is not working for Google Chrome that well. So I here is one more solution to embed PDF file using Google Docs viewer.

Google Docs Viewer

  1. Get the link of your PDF file
  2. For example I will take this (http://labs.google.com/papers/bigtable-osdi06.pdf) PDF file URL
  3. Now copy the below code
  4. <iframe src="http://docs.google.com/gview?url=YOUR-PDF-URL&embedded=true" style="width:516px; height:616px;"></iframe>
  5. 4. Change the YOUR-PDF-URL with your PDF file URL
  6. Now pate the code where ever you want to display your PDF

Here is a demo for you all

2 thoughts on “How To Embed PDF File Using Google Doc Viewer On Your Blog Or Website”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.