Just tried the code above on my Joomla site, but it didn't play out real well:
Safari wanted the Adobe Reader, but after installed, the page still wouldn't display.
FF wanted a "plug-in" but couldn't figure out what it was missing to install it.
So, even if we did the coding, the users would be perplexed.
The link above for Enbed PDF looks promising; I'll try that next.
Many thanks Ken!
Yes, those are some of the too-common problems with direct embed of PDFs.
You are dependent on the user's settings in both the viewer application and the browser.
So direct embed is really only practical where you have some standards such as within a corporate site.
I did some testing with the Enbed PDF plug-in and it does not work with Google Docs Viewer either.
Even the proxy workaround setting did not work with Google Docs Viewer.
There are a number of other people who have posted this issue around the web.
And there are multiple posts in the Google Docs forum which go back months.http://www.google.com/support/forum/p/Google+Docs/label?lid=7d298e0b22c2d291&hl=en
The only response so far is to 'use Chrome."
Yeah, use Chrome so Google can track everything you do online.
If Google would drop the required tracking and support users' privacy this issue would go away.
I do not expect other browsers and masses of users are going to disable privacy settings.
The trend is to more privacy features in all browsers (except apparently Chrome).
So basically it is time to dump the Google Docs Viewer and find a better solution.
The only reliable way to display a PDF online is to convert it to a SWF and display it with a viewer such as the example in the screenshot I posted above.
Then the 99% of people who have Flash can view the PDF without any problems..