Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Javascript hostContainer

New Here ,
Dec 14, 2016 Dec 14, 2016

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

TOPICS
Acrobat SDK and JavaScript
718
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 15, 2016 Dec 15, 2016

[Question moved to the JavaScript forum]

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 15, 2016 Dec 15, 2016

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 15, 2016 Dec 15, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 15, 2016 Dec 15, 2016
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines