0

I need to create a hosted PDF file download when clicking the button without opening the browser how to do that it in Angular

1 Answers1

1

If the PDF file is hosted at client side itself, just use HTML download attribute on anchor element like below

<a href="/path/to/the/hosted/pdf/file.pdf" download>

Reference : download attribute

Sivakumar Tadisetti
  • 4,865
  • 7
  • 34
  • 56