I'm opening an editable form PDF (opened via the acrobat plugin) in an iframe:
<iframe name="iframe_content" id="iframe_content" src="mypdf.pdf"></iframe>
There is a button that calls the following print function:
function printContent(){
window.frames["iframe_content"].focus();
window.frames["iframe_content"].print();
}
It works in Chrome, Safari, IE8, but not in IE9.
In IE9 i receive the following error in reference to the printContent()
function:
Invalid calling object
I think this may be the trick to getting it to work, but I'm not sure how to make window.frames
fit within this structure: http://msdn.microsoft.com/en-us/library/ie/gg622930%28v=vs.85%29.aspx
UPDATE: Decided that for this single page the simplest solution was forcing the browser into IE8 compatibility mode using the <meta>
tag and X-UA-Compatible