My application has two-way communication between browser and embedded PDF. Basically a user clicks a button on the browser and via Javascript the embedded PDF form is submitted. Everything was working before the update to Reader DC, but now it fails in Internet Explorer, but not in Firefox (or Chrome, if the Reader plugin isn't disabled entirely by their new default disable-NPAPI plugin policy...)
I originally was troubleshooting communication from the browser to the embedded PDF, which is done according to the Javascript for Acrobat API reference (page 358?), in the browser, as follows: document.getElementById('pdfObject').postMessage([args])
Whatever is happening, postMessage is not a valid property or method of the PDF object
Then I found this other thread:
Adobe Reader DC: hostContainer not worked on IE
I confirmed that within the embedded PDF, when setting up communication from the PDF to the browser, it is not able to register the hostContainer (again, on IE only)
I have this script on initialization within the PDF:
<---
this.disclosed = true;
if (this.hostContainer) this.hostContainer.messageHandler.onMessage = onMessageFunc
....
this.hostContainer.messageHandler.onDisclose = function() { return true; }; }
---->
Problem is this.hostContainer is null.
The main point here is all of this was definitely working before updating to Reader DC, and is still working with DC on Firefox, but not on IE.
To complicate things further, I have now uninstalled DC and downgraded to Reader 11.0.10.32, and am having a new bug, this time hostContainer is detected and communication to and from the PDF works again, but the submitForm action is failing with "Unable to open URL to submit this form" and "External undefined: exec". Testing the exact same version and script with Firefox works fine