1 Reply Latest reply on Sep 15, 2008 2:35 PM by (Sabian_Zildjian)

    Communication PDF to HTML

      I'd like to communicate with JavaScript on HTML from JavaScript on PDF.
      For example by clicking a button on PDF.

      How should it be done?
      How does event handler on the HTML side write it?

      An example was found in 260 pages on 'JavaScript for Acrobat API Reference', but I don't understand well.

      Example:

      if(this.hostContainer)
      {
      cVState = this.viewState.toSource();
      aMsg = new Array( "viewState", cVState );
      this.hostContainer.postMessage(aMsg);
      }

      (Please see the 260 pages in Reference.)