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

PDF converted is not that Good #649

Open mohsinali421 opened 2 years ago

mohsinali421 commented 2 years ago

In my local machine pdf is converted fine and looks good but my deployment server ubuntu converts pdf not properly. It cuts 30% width and also text formatting is also changed. I am facing this issue on production and not on my local. Someone please help on priority basis.

arx111 commented 2 years ago

I have the same issue, i just discovered :( it looked perfect on my machine, but when running it on a server it looks terrible

AftabFalak commented 2 years ago

Same problem. any idea how to fix it?

helmi309 commented 2 years ago

I have the same issue. any idea how to fix it?

octsiri commented 2 years ago

Same here, I am trying to create a pdf doc and serve it on server. Somehow like most of you, the result is different between local development and the production. https://github.com/tanhauhau/express-pdf/issues/2#issuecomment-934660822

alexander1007 commented 2 years ago

Ihave the same problem. any idea how to fix it? Urgent

pyrsmk commented 2 years ago

+1

walawe commented 2 years ago

@onelifeodyssey which OS are you running locally? try to play around with the zoomFactor config. default is 1, reduce this to around 0.75 or 0.8.

ashishkuswah commented 2 years ago

In my local machine pdf is converted fine and looks good but my deployment server ubuntu converts pdf not properly. It cuts 30% width and also text formatting is also changed. I am facing this issue on production and not on my local. Someone please help on priority basis.

Did you found the solution i am facing the issue

ashishkuswah commented 2 years ago

+1

did you found the solution?

ashishkuswah commented 2 years ago

Same problem. any idea how to fix it?

did you found the solution ?

ashishkuswah commented 2 years ago

@onelifeodyssey which OS are you running locally? try to play around with the zoomFactor config. default is 1, reduce this to around 0.75 or 0.8.

this doesn't work for me any other solution?