Is there a way to check if the user has installed a PDF reader?
Maybe with a ActiveX component?
Could you please help me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can detect installed plugins with
window.navigator.pluginsThis will return an array with details of installed plugins, but this will not work for Internet Explorer. When running this code, IE only returns an array with embed tags in the page. Thanks IE, so useful?
Ok, let’s try to work this out. The following function should work in all major browsers expect IE.
you can call this function and check the plugin status like this
For IE, we should try this
you can call this function and check the plugin status for IE
You can made this function declaration cross browser like this
Then you can call the function in a cross browser way. I am sorry, I don’t installed any PDF plugin for my browsers, -Firefox, Chrome or IE- so I could tell you exact name the argument we should pass hasPlugin function.
I hope, this will help you. By the way, I did not tried the code in browsers, this is a therocial knowledge on me. But I guess this will help you -hope- 🙂