Generate PDF from HTML contents in Winjs

88 Views Asked by At

I am trying to develop App using WinJS. I want to convert a HTML Content to a PDF file using JSPDF but I'm getting this error:

JSPDF is undefined.

I had tried JSPDF for WinJS.

Here is my below code:

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.4.0/jspdf.min.js"></script>

Here is my js code:

  var doc = new jsPDF();
  doc.text(10, 15, "Hello World from jsPDF.");
  doc.save("jsPDF-Hello_World.pdf");
0

There are 0 best solutions below