views:

28

answers:

1

https://docs.google.com/viewer is awesome, but there are some customizations I need to make, and documentation would be helpful. Discovered here http://googlesystem.blogspot.com... . Haven't seen any public documentation that would help.

http://code.google.com/apis/documents/overview.html covers the Google docs - where the above is more a clone of the Google Books previewer http://books.google.com/books .

+1  A: 

Google docs viewer has been embeddable for some time. There are instructions here.

You can embed PDFs, PPTs, TIFFs, and even some DOCs in an iFrame by simply adding the parameter &embedded=true to the URL of a typical viewer page. So, to embed a pdf at http://example.com/file.pdf, you could use the following code:

<iframe
src="http://docs.google.com/viewer?url=http://example.com/file.pdf&amp;embedded=true"
style="width:500px; height:500px;"
frameborder="0">
</iframe>

(Formatted this way to show as much of the URL as possible.)

Adam