Answers for "download div as pdf using javascript in custom inches"

0

html to pdf javascript

var doc = new jsPDF();          
var elementHandler = {
  '#ignorePDF': function (element, renderer) {
    return true;
  }
};
var source = window.document.getElementsByTagName("body")[0];
doc.fromHTML(
    source,
    15,
    15,
    {
      'width': 180,'elementHandlers': elementHandler
    });

doc.output("dataurlnewwindow");
Posted by: Guest on December-15-2020

Code answers related to "download div as pdf using javascript in custom inches"

Browse Popular Code Answers by Language