Opinion and commentary about Mac and iOS applications, publishing and content consumption behavior, web and cloud architectures
September 10, 2009

Embeddable Google Document Viewer

Cool finding by Alex Chitu (of Google Operating System blog):

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.

All you have to do to use this embedding functionality is to have the PDF/PPT available somewhere on the web and then use the following code:

<iframe 
src="http://docs.google.com/gview?url=YOUR_PDF_URL&embedded=true" 
style="width:WIDTH_SIZEpx; height:HEIGHT_SIZEpx;">
</iframe>