Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can I retrieve the Acrobat version being used?

Explorer ,
Dec 16, 2016 Dec 16, 2016

I have an Access application that is being developed using Acrobat 9.5 but will be used in an environment using Acrobat 7. I would like to be able to find what version of acrobat is installed when the app is running so I can do different things depending on the version in use.

(a) Is this doable?

(b) How would I go about it?

None of the documentation I have read has given me any clues.

TIA

TOPICS
Acrobat SDK and JavaScript
685
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 17, 2016 Dec 17, 2016

I am not aware of any direct way to get this information from the IAC API, I would use the JSObject and then use the JavaScript  app.viewerVersion property to get the Acrobat version:

Private Sub CommandButton1_Click()

    Dim gApp As Acrobat.CAcroApp

    Dim gPDDoc As Acrobat.CAcroPDDoc

    Dim jso As Object

  

    ' create a new PDDoc

    Set gPDDoc = CreateObject("AcroExch.PDDoc")

    gPDDoc.Create

    Set jso = gPDDoc.GetJSObject

    MsgBox (jso.app.viewerVersion)

    gPDDoc.Close

End Sub

I don't know w

...
Translate
Community Expert ,
Dec 16, 2016 Dec 16, 2016

Acrobat 9 has been out of support for quite some time - and Acrobat 7 is ancient in terms of software she. And, neither one is supported on any modern operating system. You may what to consider upgrading to a more up to date version.

As far as whether it's possible to get the Acrobat version: In general yes, but his it's done depends on which API you are using.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 16, 2016 Dec 16, 2016

I agree about the antiquity of the Acrobat versions - I have been trying to persuade the client (a club I belong to) to upgrade for ages. Their objection is to paying a subscription for a product that is fact only rarely used - which is my problem too.

Could you point me in the direction of the help I need? I am accessing Acrobat through Access VBA.

Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2016 Dec 17, 2016

I am not aware of any direct way to get this information from the IAC API, I would use the JSObject and then use the JavaScript  app.viewerVersion property to get the Acrobat version:

Private Sub CommandButton1_Click()

    Dim gApp As Acrobat.CAcroApp

    Dim gPDDoc As Acrobat.CAcroPDDoc

    Dim jso As Object

  

    ' create a new PDDoc

    Set gPDDoc = CreateObject("AcroExch.PDDoc")

    gPDDoc.Create

    Set jso = gPDDoc.GetJSObject

    MsgBox (jso.app.viewerVersion)

    gPDDoc.Close

End Sub

I don't know when the JSObject was introduced into the IAC API, so this may not work with Acrobat 7, but with some exception handling, you should be able to determine that it's either working (which means that you have Acrobat 9), or it's not working (which means you have Acrobat 7).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 17, 2016 Dec 17, 2016
LATEST

That looks like exactly what I need. Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines