8

If the pdf viewer plugin is not installed how to detect it and give a alert message to install pdf viewer

Kara
  • 6,115
  • 16
  • 50
  • 57
Rajeev
  • 44,985
  • 76
  • 186
  • 285
  • 2
    http://stackoverflow.com/search?q=detect+reader but perhaps http://www.pinlady.net/PluginDetect/ – mplungjan Nov 08 '10 at 07:51
  • 1
    possible 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 Answers1

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:

Detecting Adobe Acrobat in all browsers

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