4

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 – kamel altohamy Oct 11 '17 at 10:39
5

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, privacy policy and cookie policy

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