Acrobat (PDF) Detection / Redirection

These scripts follow the same architecture as the Flash Detection / Redirection scripts. They offer a similar range of flexibility and cross-browser support.

Note: currently, there is no way to distinguish Acrobat 6 from Acrobat 5 on IE Windows using Javascript. If a visitor has Acrobat 6, these scripts will report that they have version 5. I'm looking to see if there is a way around this problem.

Detection Without Redirection

This script does a basic Acrobat version detection and is used by the other Acrobat scripts. It gives you the flexibility to do whatever you like based on the visitor's level of Acrobat support.

Detection and Redirection

When you have separate HTML-only and Acrobat-enhanced sites, this script can act as an invisible gateway (the detection is seamless and the page is removed from the history of the browser) routing the visitor into one of the two sites.

Cookie-supported Detection

To improve the preformance when detecting on several pages, the result of the first Acrobat detection is stored in a cookie which can be checked on other pages.

Related

Licensing

These scripts are released under a Creative Commons License.