1 Reply Latest reply on Jun 3, 2010 6:05 AM by try67

    How To Capture "cancel Event" Of A Print Dialog via javascript

    Daa404

      Hi All,

       

           I have an embedded pdf document on my web page. There is also a "Print"  button on the page which allows users to print the pdf.

      After "Print" button click I use the following embedded javascript provided by acrobat scripting to perform document printing :

       

            var pp=this.getPrintParams();
            this.print(pp);

       

      The script works fine and printing dialog is openend successfully,  but my problem is that after print dialog open I simply can't find a way to

      detect whether the user pressed  the Ok button and printed or canceled printing by pressing on "Cancel". And so I can't perform any  further

      action without print results.

       

      Thanks in advance for any Ideas!