Quantcast
Channel: Adobe Community : Discussion List - Acrobat Reader
Viewing all articles
Browse latest Browse all 61627

Disable Right click Context Menu on pdf loaded in HTML Object Element

$
0
0

I need to disable the context menu on the ActiveX plugin in an within an IE Browser after the file has been loaded into an HTML OBJECT element. Reason being I need to track printing of PDF documents via JavaScript and the print action is not detected using the script below. I have disabled the nave panes status and toolbar, the only hole is the context menu print.

 

Any help would be greatly appreciated.

 

 

 (function() {            var beforePrint = function() {                alert('Printing.');            };             if (window.matchMedia) {                var mediaQueryList = window.matchMedia('print');                mediaQueryList.addListener(function(mql) {                    if (mql.matches) {                        beforePrint();                   }                });            }              window.onbeforeprint = beforePrint;       }());       

Viewing all articles
Browse latest Browse all 61627

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>