How do I make my HTML webpage downloadable?
Like I create a webpage that searches for a student record information and has a link with the text of download and once clicked it downloads the student record information in a PDF or txt format
How do I make my HTML webpage downloadable?
Like I create a webpage that searches for a student record information and has a link with the text of download and once clicked it downloads the student record information in a PDF or txt format
There’s no native solution from client to PDF, as far as I am aware of.
If you have a web server you can set the Content Type header to application/pdf
and then send a binary file.
Or if you need to use the client you may probably have to rely on some library like jsPdf.
Hope it helps 
Thanks a lot @Marmiz the jspdf library really helped.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.