title: Create PDF with AngularJS from array object?
body: <p>Say, I have an array object:</p>
  
  <pre><code>$scope.data =
              [
                  {name: 'Tom', city: 'Paris', profession: 'Student'},
                  {name: 'Lilly', city: 'London', profession: 'Artist'},
                  {name: 'Adam', city: 'Berlin', profession: 'Singer'}
              ];
  </code></pre>
  
  <p>How can I create a PDF file from this that displays a simple table that looks like this:</p>
  
  <pre><code>+-------+--------+------------+
  | name  |  city  | profession |
  +-------+--------+------------+
  | Tom   | Paris  | Student    |
  | Lilly | London | Artist     |
  | Adam  | Berlin | Singer     |
  +-------+--------+------------+
  </code></pre>