node-html-pdf icon indicating copy to clipboard operation
node-html-pdf copied to clipboard

Dynamic header and footer height

Open kavishatalsania opened this issue 5 years ago • 5 comments

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?

kavishatalsania avatar Jan 09 '20 05:01 kavishatalsania

Any fixes on this?

abandral avatar Apr 13 '20 19:04 abandral

bump!

shanthakumarf22 avatar Feb 24 '21 08:02 shanthakumarf22

Something new?

augustosnk12 avatar May 04 '21 14:05 augustosnk12

here for 2022

ronelvcabrera avatar Aug 12 '22 07:08 ronelvcabrera

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

augustosnk12 avatar Aug 13 '22 12:08 augustosnk12