Digital Workshop http://forum.digitalworkshop.co.uk/ |
|
Checking for Acrobat http://forum.digitalworkshop.co.uk/viewtopic.php?f=13&t=1744 |
Page 1 of 1 |
Author: | bwpatric [ May 19th, 2006, 1:00 pm ] |
Post subject: | Checking for Acrobat |
If you need to check for the presence of Acrobat before launching PDFs in your publications, here is a method for doing so. The only caveat for this method is that Windows 2000 puts the registry entry in by default, so this won't work on Windows 2000, but from what I have read, there really is no foolproof method for discovering whether Acrobat is on a machine. This can go on a Page action on show. The b's referred to below in the code are buttons. One to launch a PDF, the other to go to Acrobat downloader. They are both set to be initially hidden. Hope this helps folks. Code: var AcroInst = ReadRegistryKey("HKEY_CLASSES_ROOT\\.pdf", "Content Type");
if(AcroInst=='application/pdf'){ b1.Show(); } else { b2.Show(); } |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |