4 Replies Latest reply on May 26, 2015 8:41 AM by 1300virginia

    JavaScript download?

    1300virginia Level 1

      Hello,

       

      I have a button in my pdf file that when clicked I want it to download a pdf and not open it in a browser.

       

      I have a pdf file on Google drive and it is set to public. The button in my pdf document uses the “Open a web link” action but it doesn’t open the file and shows me the following message in Chrome, Firefox, and IE.

      So what I want to do is force the pdf to download.

       

      web.PNG

       

      Can this be done using JavaScript?


      Or is there another way to accomplish this task?


      Thank you

      Mark