comment exporter des données html au format pdf en angularjs

c'est mon code html où j'ai rendu tous les json données de .js fichier mais se

TypeError: Impossible de convertir le indéfini ou null pour objet
à une Fonction.les touches ()
au DocMeasure.measureNode (pdfmake.js:15647)
au DocMeasure.measureDocument (pdfmake.js:15635)
au LayoutBuilder.tryLayoutDocument (pdfmake.js:15088)
au LayoutBuilder.layoutDocument (pdfmake.js:15076)
au PdfPrinter.createPdfKitDocument (pdfmake.js:2130)
au Document._createDoc (pdfmake.js:82)
au Document.getDataUrl (pdfmake.js:177)
au Document.ouvert (pdfmake.js:109)
à l.$la portée.openPdf (app.js:29)

<head>
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  <script type="text/javascript" src="pdfmake.js"></script>
  <script type="text/javascript" src="vfs_fonts.js"></script>
  <script type="text/javascript" src="app.js"></script>
  <script type="text/javascript" src="jquery-3.1.1.min.js"></script>
  <script type="text/javascript" src="raj.js"></script>
    <script type="text/javascript" src="jspdf.js"></script>



</head>

<body ng-app="pdfDemo">
  <div ng-controller="pdfCtrl">
          <div id="pdfContent">
                  <table id="example-table">
                            <thead>
                            <th>firstName</th>
                            <th>lastName</th>
                            <th>Gender</th>
                            <th>Mobile</th>

                            </thead>
                            <tbody>
                            <tr ng-repeat="emp in employees">
                            <td>{{emp.firstName}}</td>
                            <td>{{emp.lastName}}</td>
                            <td>{{emp.gender}}</td>
                            <td>{{emp.mobile}}</td>
                            </tr>

                            </tbody>

                  </table>
          </div>
    <button ng-click="openPdf()">Open Pdf</button>
    <button ng-click="downloadPdf()">Download Pdf</button>
  </div>

</body>

</html>

OriginalL'auteur Rajesh gatla | 2016-12-30