Skip to main content
Inspiring
December 17, 2016
Answered

How can I retrieve the Acrobat version being used?

  • December 17, 2016
  • 1 reply
  • 758 views

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

This topic has been closed for replies.
Correct answer Karl Heinz Kremer

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).

1 reply

Karl Heinz  Kremer
Community Expert
December 17, 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.

Inspiring
December 17, 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.

Karl Heinz  Kremer
Karl Heinz KremerCorrect answer
Community Expert
December 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).