Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

How to detect Adobe Reader's version in Internet Explorer 10

$
0
0

Hey,

I'm developing a small plugin checking mechanism for browsers similar to Mozilla's Plugin Check or Qualys' BrowserCheck.  Using javascript, I want to be able to detect the plugins that a used has installed (i.e. Java, Flash, Quicktime, Adobe Reader, etc.) and report the full version numbers for each respective plugin.

I've had success doing this for Chrome and Firefox and moderate success in Internet Explorer, but I haven't been able to develop a method to identify the Adobe Reader version in Internet Explorer.

Here is how I have been approaching the problem:

print("Adobe Reader Version: " + reader_version());

function reader_version(){
    control = new ActiveXObject('AcroPDF.PDF');

    if (control) {
	isInstalled = true;
	version = control.GetVersions().split(',');
	version = version[0].split('=');
	version = parseFloat(version[1]);
	return version;
    }
}

This will return the first subset of the full version number, but not the full string.  For example, if I have Adobe Reader 11.0.03 installed, this function will only return 11.

Is there some way I can get the full version?

Thanks


Viewing all articles
Browse latest Browse all 3527

Trending Articles