Evaluating JavaScript using Acrobat’s console

If you have incorporated JavaScript into your PDF documents, chances are that you’d like to make sure that it’s valid before you post the PDF to your website. The good news is that Acrobat has a handy JavaScript console that allows you to do just that.

In order to test your JavaScript using Acrobat’s console:

  1. Open Acrobat.
  2. Select Advanced > JavaScript > Debugger, or hit ‘Control+J’ on your keyboard.
  3. Once you’ve typed your JavaScript code into the console, highlight the line/s of code you want to run and press ‘Enter’ only, to execute.

You’re done! Simple, huh?

You May Also Like

About the Author: Dan Shea

Leave a Reply