export an array as table using jspdf
问题 I have my data in below format. [ {"Company":"XYZ1", "FName":"John", "LName": "Deere", "ID": 1234}, {"Company":"XYZ2", "FName":"Jack", "LName": "Jones", "ID": 2345}, {"Company":"XYZ3", "FName":"James", "LName": "Lebron", "ID": 3456} ] Is there a way to export the same data as 2 different tables into a PDF file ? I am using Angular 4 and jsPDF package. Table: 1 **Company** **FName** XYZ1 John XYZ2 Jack XYZ3 James Table: 2 **LName** **ID** Deere 1234 Jones 2345 Lebron 3456 回答1: You can use