jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

JSPDF Print

Open arunraman05 opened this issue 10 years ago • 2 comments

I have generated the PDF using jspdf, i need to print the pdf the in browser. inmy system pdf is working fine, but another using alignment is get changed. ii addded the screen both pdf.

correct pdf image image

its worng one image

this my code

var doc = new jsPDF('portrait', 'mm','a6');//[height,width] doc.setFontSize(10); doc.text(40, 5, 'Atyourdoorstep.in'); doc.text(30, 10, 'Palkalai Nagar, Pallavakkam');
doc.text(40, 15, 'Chennai - 41');
doc.text(55, line+37, 'Thank You ! Visit Again '); doc.autoPrint(); doc.output('dataurlnewwindow');

arunraman05 avatar Jul 20 '16 08:07 arunraman05

Use below code appropriately

$scope.doc.internal.scaleFactor = 1.55;

bhavik4748 avatar Jul 20 '16 13:07 bhavik4748

its not working

On Wed, Jul 20, 2016 at 7:16 PM, bhavik4748 [email protected] wrote:

Use below code appropriately

$scope.doc.internal.scaleFactor = 1.55;

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MrRio/jsPDF/issues/802#issuecomment-233953536, or mute the thread https://github.com/notifications/unsubscribe-auth/AP7KN_u3ZLQaH5KnE1EltF2G41mediLEks5qXibAgaJpZM4JQhfl .

Regards, ArunRaman 9500136681

arunraman05 avatar Jul 21 '16 13:07 arunraman05