Search code examples
asp.net.netasp.net-mvcasp.net-mvc-3pdf-viewer

Can I determine if a user has a browser add-on enabled?


I am using a PDF viewer in an MVC application, object id='pdfbox'. For this to work an add-on has to be enabled in the browser: Adobe PDF Link Helper.

Is it programmatically possible to determine if the add-on is enabled or not in the client machine and give to link to enable the add-on?

Is any sample code available?


Solution

  • You could try providing alternate content which will be displayed if the plugin is not installed:

    <object ...>
        <p>
            You do not have the XXX plugin installed. You could download it here
        </p>
    </object>