Say, I have an array object:
$scope.data =
[
{name: 'Tom', city: 'Paris', profession: 'Student'},
{name: 'Lilly', city: 'London', profession: 'Artist'},
{name: 'Adam', city: 'Berlin', profession: 'Singer'}
];
How can I create a PDF file from this that displays a simple table that looks like this:
+-------+--------+------------+
| name | city | profession |
+-------+--------+------------+
| Tom | Paris | Student |
| Lilly | London | Artist |
| Adam | Berlin | Singer |
+-------+--------+------------+
ng-csv.