Here Mudassar Ahmed Khan has explained with an example, how to export HTML Table data to PDF file using AngularJS.
The HTML Table will be populated from a JSON array using AngularJS.
The HTML Table will be first converted into a HTML5 Canvas using html2canvas plugin and then the HTML5 Canvas will be exported to PDF using the pdfmake plugin.