Link to home
Start Free TrialLog in
Avatar of andrewpiconnect
andrewpiconnectFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Javascript to force IE/Firefox/Chrome/safari to open Pdf in Adobe Reader

Hi,

I have several Pdf (XML structured (XFA)) documents, which can only viewed using Adobe Reader - i.e. chrome/IE/Safari/Firefox's own readers cannot view these documents.

I require some code that can check if a users browser has the ability to view a document using Adobe reader, then prompts the viewer to accept defaulting the browser reader to that of Adobe reader and then opening the document accordingly, (if no adobe is installed on the users pc, present to offer the ability to download the free Adobe reader by providing a link if the reader itself and then make the browser add on the default reader for the applicable browser?

Many thanks
ASKER CERTIFIED SOLUTION
Avatar of Alexandre Simões
Alexandre Simões
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of andrewpiconnect

ASKER

thanks for your replies.

However, html5 is not really what i am looking for as tbh i am not well versed on this, and having previously investigated it seemed very glitchy and unable to handle dynamic xfa forms,, could simply be how i set up though.

I'm sure i read somewhere that it was possible to check for the plug in programatically using JS and if not loaded/set as default reader to then recomend setting abobe reader as default in the browser giving "how to" instructions. Are you saying this is not possible?

Many thanks
Without specific ActiveX components that need user authorization to run, a webpage only knows about it's own sandbox.
You can't verify if the browser have some plugins installed or the PC have some software installed.

The other way around it works. for instance if you have a plugin installed it can intercept an action and behave as desired but that's the normal plug-in behavior as we all know.
Many thanks.......i will have to re-plan my strategy for this then