We have some forms of PDF that do not display correctly in readers that are not related to Adobe PDF (i.e., the built-in PDF reader WebKit does not allow displaying some Adobe branded items). We want to detect when users do not have Adobe Reader Reader, and give them a small warning, but itβs hard for me to figure out how to do this in 2014.
This script seems to have worked in 2011. Basically, it goes through navigator.plugins and looks for plugins called Adobe Acrobat or Chrome PDF Viewer .
for(key in navigator.plugins) { var plugin = navigator.plugins[key]; if(plugin.name == "Adobe Acrobat") return plugin; }
Scroll forward to this day, Adobe must have changed something because I have Adobe Acrobat installed, but it doesn't seem to be in navigator.plugins ! Where is it now and how to find it?
source share