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

Dynamic header and footer height #546

Open kavishatalsania opened 4 years ago

kavishatalsania commented 4 years ago

I am having a trouble with repeating dynamic header and footer on every page. Header and footer content gets overlapped by body content. My header and footer height is not fixed as it depends on the dynamic content.

I'm generating headers and foots using the JS config method as described. I can not set height property for header/footer as it is dynamic. Is there anyway that it takes height based on content size?

abandral commented 4 years ago

Any fixes on this?

shanthakumarf22 commented 3 years ago

bump!

augustosnk12 commented 3 years ago

Something new?

ronelvcabrera commented 2 years ago

here for 2022

augustosnk12 commented 2 years ago

@ronelvcabrera I could not solve this using this lib. My solution was use puppeteer directly to generate the PDF.