Copy link to clipboard
Copied
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
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
...Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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).
Copy link to clipboard
Copied
That looks like exactly what I need. Thanks.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now