You just call them like any other function. So to call init you just add
this call to your script:
You just need to make sure you don't use the same function name in multiple
If I drop an app.alert("Here") call just after the sendMessage() call, it doesn't happen, as if the script hit a runtime error and aborted prematurly.
That only appears to allow communication from the Host to the Document, I need the reverse.
In any case, if my link-object has the code:
So what do I need in the HTML to intercept that message?
That's helping: its showing that messages can be sent back and forth between the HTML and the PDF (although I can't get the demo to actually get a message in, I only get the onDisclose error). Likely because the demo is doing far more than I need it too (including adding and removing its own events).
We're going to have to dissect this, but from a quick looky-loo it looks to me like the HTML sets the PDF's onMessage handler to a function in the HTML thus allowing messages to come out, but because the handler is in use you can't have two-way communication.
I am unable to duplicate the sample's effects. I can not get the PDF to communicate with its host container.
Message was edited by: Draco18s
I finally managed to get what I need by hacking that source down, cutting out what I didn't need.
Thanks a bunch.
We have a same issue where we are not able to get the data from PDF to the hostContainer(HTML). Could you please let us know how to solve this issue.
Are you able to get the demo to work?
Unfortunately, I don't have that project any more myself. Wish I could help.