Tuesday, September 6, 2016

Javascript: Download PDF using javascript

Javascript: Download PFD using javascript



              var x= 'http://your-site/pdf-report/purchasing-report.pdf'; //PDF URL
              myTempWindow = window.open(x,'','left=10000,screenX=10000');
              myTempWindow.document.execCommand('SaveAs','null','download.pdf');

No comments :

Post a Comment