I tried to use file-saver module but it is opening the URL in the new page instead of getting downloaded. Here is the snippet I used. Can anyone help me with this?
this.pdfurl = "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf";
const blob = new Blob([this.pdfurl],{type:'applicaton/pdf'})
fileSaver.saveAs(this.pdfurl,"download.pdf");