alvarcarto / url-to-pdf-api

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
MIT License
7.03k stars 779 forks source link

Font size decrease when pdf.width and pdf.height parameters are passed. #59

Closed TOPS-Aman closed 6 years ago

TOPS-Aman commented 6 years ago

If the height and width parameters are passed while rendering an HTML page, it somehow reduces the font size but the size of the content boxes are not affected. Is this the expected result, if not is there any solutions (any flag) to make sure the pdf rendering does not affect any applied styles(CSS).

kimmobrunfeldt commented 6 years ago

This would be an issue more relevant in https://github.com/GoogleChrome/puppeteer repo. I'm not sure why this is happening. If there appears to be some flag which would be needed to solve this, please open a new issue describing what flag is needed to fix it in this API also. PR would be even better.