Can a PDF run JavaScript?

If yes what are the limitations of running scripts in a PDF when compared to a browser?

Can it do network requests using JS?

Can it run other types of scripts?

Is JavaScript used to submit embedded forms?

  • really it may be risky if pdf file contains some scripts. Hope experts to help Oct 11, 2017 at 10:39

1 Answer 1


Yes, it can JavaScript or what they call as Acrobat Javascript , but not all the PDF viewer can are designed to follow the Adobe Javascript API. There are few limitations defined in the API, it can make Ajax network calls but no it cannot run any other then the JavaScript as of now.

But you can disable it by

  • Select Edit>Preferences.
  • Select the JavaScript Category.
  • Uncheck the Enable Acrobat JavaScript' option.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.