title: How to download PDF automatically using js?
body: <p>My scenario is that PDF file download automatically, then user fills it and when click on submit button in PDF it connect to java servlet and save it in DB.</p>
  <ol>
  <li>User click on Button</li>
  <li>JavaScript code run and PDF file download automatically</li>
  <li>open file using JavaScript automatically</li>
  <li>user fills &amp; press submit</li>
  <li>after submit servlet code run and save data in db</li>
  </ol>
  <p>In my Application just the 2nd point is missing. Please provide code how to interact with extension using JavaScript to download file automatically.
  I just want to download the file.</p>