marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.56k stars 545 forks source link

I have the font size increase on linux after deploy my appllication #619

Open ELBEQQAL94 opened 3 years ago

real-artswan commented 3 years ago

I think it is phantomjs issue we use CSS {zoom: 0.7;} on Linux as a workaround

ELBEQQAL94 commented 3 years ago

I think it is phantomjs issue we use CSS {zoom: 0.7;} on Linux as a workaround

Thank @real-artswan for your response, I changed zoomFactory and height and width that solve my problem.

anasabdullahysfzai commented 1 year ago

To fix the above issue , add the following snippet inside the style tag

<style>
.
.
.
.
body {
zoom: 0.75;
}
.
.
.
.
</style
cdking007 commented 1 year ago

worked thanks :-)