Dec 23, 2011
I have a windows 7 64test bit professional os. I installed adobe reader X. I need to test apps with various settings of adobe reader.
Checking and unchecking of "display pdf browser"(under edit->preference->internet) is not working consistently.

Steps to reproduce the issued

1. Installed the adobe X and in a html page ran the pdf plugin detect test
in html page onload i had the following javascript---it is able to detect the pdf version

2. Opened the adobe X and unchecked 'display pdf browser'. plugin detect failed. went back to adobe X and found that 'display pdf browser' is checked(eventhough I did not change it). Now the plugin detect fails.

Currently I am installing and uninstalling the adobe x to fix this issue. Which takes really long time. How can I fix this?

var isInstalled = false;
var version = null;
if (window.ActiveXObject) {
var control = null;
try {
// AcroPDF.PDF is used by version 7 and later
control = new ActiveXObject('AcroPDF.PDF');
} catch (e) {
// Do nothing
if (!control) {
try {
// PDF.PdfCtrl is used by version 6 and earlier
control = new ActiveXObject('PDF.PdfCtrl');
} catch (e) {
if (control) {
isInstalled = true;
version = control.GetVersions().split(',');
version = version[0].split('=');
version = parseFloat(version[1]);
} else {
// Check navigator.plugins for "Adobe Acrobat" or "Adobe PDF Plug-in"*