Google Docs offers an undocumented feature that lets you embed PDF files and PowerPoint presentations in a web page. The files don't have to be uploaded to Google Docs, but they need to be available online.
<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>
/*soloq ue con esta no encuentra el diocuemento */
<iframe width="100%" frameborder="0" heigth="100%" src="http://docs.google.com/gview?url=https://docs.google.com/document/d/1_qqNL3YvHUVtjoI6uc8sNucCo_Zof56yVv9-qcbZ6l4/edi&embedded=true"></iframe>
The easiest way to embed Google Docs in any HTML page or blog post is usingiframe.
Every Google Docs files are assigned with unique URL as an identifier. So we’ll need this unique identifier in order to embed it to any HTML pages.
1. Get the unique URL. Open any Google Docs file. To get the URL, you have to publish the files to public. From the top right of that page, click on ‘Share‘ -> ‘Publish As Web Page‘. New page will be opened. Click on the ‘Publish Document’ button. You’ll see the message saying the document has been published such as below.
Your document is publicly viewable at:
http://docs.google.com/Doc?id=dcrwnphc_255dc6vhnf6
2. We’ll use iframe in order to embed the URL above. This iframe code is taken from Google blog. Copy URL above and replace the red font color code below. You can set the parameters such as width, length and frame border to suit your page. Learn more about iframe.
https://docs.google.com/document/pub?id=1b6w8koXnhBgNTC3G35UR05tds5Uu7lyQ4OfXTHEPcoQ
https://docs.google.com/document/d/1b6w8koXnhBgNTC3G35UR05tds5Uu7lyQ4OfXTHEPcoQ/edit
<iframe src=”http://spreadsheets.google.com/lv?key=pDDaecJdkAYQ1Lb5HTswLBA&type=view&gid=0&colid0=1&filterstr0=Associate&sortcolid=-1&sortasc=true&rowsperpage=5″ width=”500″ frameborder=”0″ height=”330″></iframe>
<iframe src="https://docs.google.com/document/pub?id=1MXCn-4Md0tGF4NoHHXeng1aXHnCvvaVk4a6oTR1pHfM&embedded=true" width=”500″ frameborder=”0″ height=”330″></iframe>