jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

while print PDF page with for more header page & page size increased

Open arunraman05 opened this issue 10 years ago • 0 comments

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.

arunraman05 avatar Jul 09 '16 12:07 arunraman05