4 Replies Latest reply: Jul 4, 2008 7:34 AM by sbaldizz RSS

    which acrobat version?

    sbaldizz Community Member
      There is a way to known the version of acrobat that use air. And if is a reader or the full version?
      I need to check if the user have the right version of acrobat (8.1.3 or 9) that solve a big problem for me.
      thanks
        • 1. Re: which acrobat version?
          anirudhs Community Member
          Hi,

          You can use HTMLLoader.pdfCapability to check if the machine can render PDF content properly. It will let you know if the installed reader is too old, if reader is not found and if there is supported reader, but the reader set to display PDF is too old.

          Code:

          if(HTMLLoader.pdfCapability == HTMLPDFCapability.STATUS_OK)
          {
          trace("PDF content can be displayed");
          }
          else
          {
          trace("PDF cannot be displayed. Error code:", HTMLLoader.pdfCapability);
          }
          • 2. Re: which acrobat version?
            sbaldizz Community Member
            thanks anirudhs,
            but I need to know the version of acrobat. On OSX there is a bug until version 8.1.2, so I need to know if the user have acrobat (pro o reader is the same) <8.1.2 (and then show a version warning) or >=8.1.3 or 9.
            • 3. Re: which acrobat version?
              anirudhs Community Member
              Hi,

              Then you could try loading a PDF that you created with custom javascript in it which can tell AIR what version of reader it is.

              For more info on cross scripting between AIR and PDF, check out this devnet article.
              • 4. Re: which acrobat version?
                sbaldizz Community Member

                I think it is the only solution, but not very convenient because the problem in acrobat 8.1.2 is the javascript interaction with air...
                thanks