Skip to main content
Participant
Dec 14, 2016 9:31 PM UTC
Question

Javascript hostContainer

Does anyone have any sample code demonstrating hostContainer.postMessage javascript function working with IE11 and Adobe Reader DC?  I have spent the last several days trying about every combination of code I could think of and cannot get it to work.  All I want to do is notify my program once the PDF has printed.  I have the DIDPRINT routine firing but I cannot get my browser to recognize the postMessage command.

Any help appreciated,

Joe

This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

Inspiring
Dec 15, 2016 5:36 PM UTC

Adobe Acrobat JavaScript is not the same as web JavaScript. If you want to have a pop-up message appear use the "app.alert()" statement.

In Acrobat/Reader you cannot access the full host container only the objects within the host container.

Translate
Participant
Dec 15, 2016 7:53 PM UTC

So how do I let my web browser know when the user has printed the PDF document?

Translate
Inspiring
Dec 15, 2016 11:49 PM UTC

You can use the Soap object. See the Acrobat JavaScript API Reference.

Translate
try67
Community Expert
Community Expert
Dec 15, 2016 1:48 PM UTC

[Question moved to the JavaScript forum]

Translate