If the pdf viewer plugin is not installed how to detect it and give a alert message to install pdf viewer
Asked
Active
Viewed 3.9k times
8
-
2http://stackoverflow.com/search?q=detect+reader but perhaps http://www.pinlady.net/PluginDetect/ – mplungjan Nov 08 '10 at 07:51
-
1possible duplicate of [Is there any jquery plugin/script to detect Adobe Reader on user system ?](http://stackoverflow.com/questions/1900257/is-there-any-jquery-plugin-script-to-detect-adobe-reader-on-user-system) – zzzzBov Jan 17 '11 at 23:01
1 Answers
23
I created a script on my blog for all major browsers to detect pdf reading capabilities. Even distinguishes between Chrome's PDF Viewer and Acrobat. you can get the code here:

Ben
- 1,203
- 13
- 8
-
`browser_info.acrobat == null` might want to change that to `=`. (I can't edit it myself since edits must be at least 6 characters, apparently.) – crdx Jul 13 '12 at 14:25