Reputation: 159
I need to extract and download my HTML5 table as Excel sheet, pdf in Angular 4 CLI. How I can do that? Kindly help me to solve these issue.
Upvotes: 1
Views: 1962
Reputation: 942
Both PDF and Excel are pretty complex file formats. Of course, exporting a table to such a format is not supported out of the box.
On server-side languages, there is a much better support for generating them, as more mature libraries are available. However, if you want to create PDFs from client-side Javascript, you can take a look at https://github.com/MrRio/jsPDF
To go the server-side way, you would implement some process like:
Upvotes: 1