pipwerks/PDFObject — Issue #11: HTML5 Doctype IE9
Author: jwagner79
Created: 2012-01-12 21:58:07+00:00
State: open

In my testing I've found that using an object to embed the PDF doesn't work for Adobe reader in IE9 (or maybe it's just me: IE9, Adobe Reader 9.5 or X, Windows 7 x64).

Try the following for example:

However, using an iframe works fine for HTML 5 doctype. I'm not sure if you can reliably detect the doctype in javascript with IE, but one option would be to use an iframe rather than object if the browser supports ActiveX. Something like this in the embed method:
if (hasReaderActiveX())
targetNode.innerHTML = '';
else
targetNode.innerHTML = '';