I have a windows 7 64test bit professional os at work. I installed adobe reader X. I need to test asp.net apps with various settings of adobe reader and versions. Checking and unchecking of “display pdf browser”(under edit->preference->internet) is not working consistently. This works fine in window 7 32 bit machine I have at home. Steps to reproduce the issue…
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 in ie
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) {
return;
}
}
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”*
}
Are You Upset Or Frustrated At A Business?
Click Here To File A Complaint
Related Keywords:
- Reader10 ActiveXObject
- pdf pdfctrl version10
- activexobject adobe reader version 10
- plugindetect adobereader failing
- javascript activexobject for adobe reader x
- installare adobe reader su tv net
