Answers.Body: <p>Yes, it can JavaScript or what they call as <strong>Acrobat Javascript</strong> , 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.</p>
  
  <p>But you can disable it by </p>
  
  <ul>
  <li>Select Edit>Preferences. </li>
  <li>Select the JavaScript Category. </li>
  <li>Uncheck the Enable Acrobat JavaScript' option.</li>
  </ul>
  
  <p><a href="https://i.sstatic.net/2e4hw.jpg" rel="noreferrer"><img src="https://i.sstatic.net/2e4hw.jpg" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-11T12:46:03.150Z
Answers.LastActivityDate: 2017-10-11T12:46:03.150Z
Answers.UserDisplayName: Vinod Srivastav
Body: <p>Can a PDF run JavaScript?</p>
  
  <p>If yes what are the limitations of running scripts in a PDF when compared to a browser?</p>
  
  <p>Can it do network requests using JS?</p>
  
  <p>Can it run other types of scripts?</p>
  
  <p>Is JavaScript used to submit embedded forms?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-11T10:39:05.373Z
Comments.Text: really it may be risky if pdf file contains some scripts. Hope experts to help
Comments.UserDisplayName: kamel altohamy
Tags: <pdf><file-format>
Title: Can a PDF run scripts or code?
UserDisplayName: kindly
ThreadText: # Can a PDF run scripts or code?
  
  (Asked by: username_0 on 2017-10-11)
  
  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?
  
  **Tags:** pdf, file-format
  
  > **Comments:**
  > **username_1**: really it may be risky if pdf file contains some scripts. Hope experts to help  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-10-11. Score: 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](https://i.sstatic.net/2e4hw.jpg)](https://i.sstatic.net/2e4hw.jpg)
  
  
  ---
  
  