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 544 forks source link

The download pdf always have an empty page at last #695

Closed Sunshine-Qiu closed 1 year ago

Sunshine-Qiu commented 1 year ago

If the html template have no content in body ,the download pdf only have one empty page . But if the html template have content in body ,the download pdf will have two page,the first page show the content that write in body,the second page show empty . How can the download pdf don't show the empty page. image

Sunshine-Qiu commented 1 year ago

change the pege height will resolve this problem