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.55k stars 544 forks source link

Page overflow with white line #702

Closed danielnydrle closed 1 year ago

danielnydrle commented 1 year ago

Hello, I have an issue when generating PDF files, I have a white line in the bottom with the page components overflowing to next page. I set outline: none; border: none; margin: 0; padding: 0; everywhere and still get this strange behaviour. In the method pdf.toFile(), I set borders: 0, yet I still get this strange issue. No problem with generating PNGs though.

image

Any idea how to fix this?