Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML2PDF has blurry pdf output

Tags:

php

html2pdf

I need some help, why is it that the resolution of my html2pdf is blurry? How can I adjust the resolution?.

like image 571
rkevx21 Avatar asked Jul 09 '15 06:07

rkevx21


1 Answers

This is an example in js if someone use this lib

https://github.com/eKoopmans/html2pdf#image-type-and-quality

You can pass an option html2pdf(content, option)

Try this, html2pdf(document.body, {html2canvas: { scale: 4 }})

I guess in php, it should be similar.

like image 174
Sirapat Avatar answered Sep 28 '22 02:09

Sirapat