how to embed viewer for PDF uploaded to Google Docs

This one was rather elusive. I finally found the solution in a side window that shows up when viewing a PDF file within Google Docs, i.e.…

In the right sidebar, there’s a little window with embed code that has HTML code like this:


So if you’ve got a PDF file you’ve uploaded to Google Docs, and can’t get it to show using the Google Docs Viewer generator at . The code you’d use is like this — note: replace srcid with your PDF document’s ID.


That should do it. You can change the width and height as you’d like.

[aside: wasn’t able to figure out how to post HTML code in a Posterous post, so had to use images, which means you’ll have to carefully type out the cryptic embed codes, sorry]