jspdf Cannot create property 'callback' on number '15'

JavaScript
//The signature for doc.html() is different than doc.fromHTML().
//You need to do it this way instead:
doc.html(DATA.innerHTML, {
  'x': 15,
  'y': 15,
  'width': 200,
  'elementHandlers': handleElement
});

Source

Also in JavaScript: