google-chromeadobe-javascript

Acrobat JavaScript this.submit(url, false) does not work on Chrome PDF Viewer


I have a PDF document, using a button on the form I submit to a URL using this.submitForm(url, false); works fine with Adobe Reader Plugin but not with Chrome PDF Viewer, does Chrome PDF Viewer submit forms using a different method?


Solution

  • Chrome has its own PDF viewer called Chrome PDF Viewer, and AcroJS won't work (mostly) on Chrome PDF Viewer. One needs to detect the plug-in, and force the user to use Acrobat Reader if the browser is Chrome's own.