jsPDF
jsPDF copied to clipboard
while print PDF page with for more header page & page size increased
This is my codevar doc = new jsPDF('portrait', 'mm', [50, 120]); doc.setFontSize(10); doc.text(5, 2, 'This is the default font.');
doc.setFont("courier"); doc.setFontType("normal"); doc.text(5, 30, 'This is courier normal.');
doc.setFont("times"); doc.setFontType("italic"); doc.text(5, 40, 'This is times italic.');
doc.setFont("helvetica"); doc.setFontType("bold"); doc.text(5, 50, 'This is helvetica bold.');
doc.setFont("courier"); doc.setFontType("bolditalic"); doc.text(5, 60, 'This is courier bolditalic.');
doc.output('dataurlnewwindow');
while printing in chrome browser text size different and with page header, in morzila browser text size is correct and without header is printing.