postMessage to PDF in an iFrame
- by Linus
Here's my situation.
I had a webpage with an embedded PDF form. We used a basic object tag (embed in FF) to load the PDF file like this:
<object id="pdfForm" height="100%" width="100%" type="application/pdf" data="..url"></object>
On this webpage was an Html Save button that would trigger some Javascript which used the postMessage…