jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

How to generate high-res pdf

Open shujaatxp opened this issue 8 years ago • 5 comments

How i can generate high-resolution pdf.

var pdf = new jsPDF('l', 'pt', 'letter');

    pdf.addHTML(document.getElementById('certificateimage'), function () {
        pdf.internal.scaleFactor = 3.75;

shujaatxp avatar Feb 22 '18 11:02 shujaatxp

Manipulating the scaleFactor in the callback of addHTML will not lead to a high resolution PDF. That is for sure.

Uzlopak avatar Feb 22 '18 11:02 Uzlopak

what to do in this case. in addition to that in mobile view, the size of the pdf is small. how to make it fix.

shujaatxp avatar Feb 22 '18 12:02 shujaatxp

I don't think that you can get a high resolution PDF like that.

Uzlopak avatar Feb 23 '18 08:02 Uzlopak

then how can i get that

shujaatxp avatar Feb 23 '18 10:02 shujaatxp

Duplicate of #1629

Uzlopak avatar Feb 23 '18 11:02 Uzlopak