hajareshyam / pdf-creator-node

This package is used to generate HTML to PDF in Nodejs
MIT License
238 stars 79 forks source link

PDF render differs on localhost and server #83

Open pyonic opened 2 years ago

pyonic commented 2 years ago

All versions of libs and dependencies are similar, using px format of font-size f.e Text this does not works, width sets to 80px on server render, but on localhost works fine. Also tried html {zoom: 0.55} Did not help to me Can you give advice please?

XXXL3J commented 1 year ago

This could be caused by Screen/Render Resolution between local and sever(even it possibly has no monitor screen).

voltairenathan commented 1 year ago

Im getting the same issue. I tried using html {zoom: 0.50-60} and it kinda solve the issue but it sounds like a work around. When i try to use a different html to render, i need to adjust again the zoom.