0 Replies Latest reply on Feb 14, 2008 12:39 PM by (Robert_Herold)

    How to detect Reader 8.1.2 from javascript?

      Version 8.1.2 has broken the tried and true way of detecting Acrobat from Javascript. Anyone know a new way for version 8.1.2?

      Previous version 8 and version 7 releases could be detected with:

      function acrobatInstalled() {
      if (window.ActiveXObject) {
      // AcroPDF.PDF.1 is Acrobat 7 or 8
      try {
      var line = "new ActiveXObject('AcroPDF.PDF.1');";
      var oAcro = eval(line);
      if (oAcro)
      return true;
      }
      catch(e) {
      }
      }
      return false;
      }