toondaey / nestjs-pdf

Nest js pdf generator
MIT License
80 stars 37 forks source link

How can I set "header" and "footer" height? #194

Open diamond94618 opened 1 year ago

diamond94618 commented 1 year ago

I know this module uses "html-pdf", and it's default header height is 46mm, footer height is 28mm How can I customize them? I can't find any options for it. image

zulmarij commented 1 year ago

This is my code

image

Hope this helps

LordKriegan commented 1 year ago

@zulmarij thanks this solution worked perfectly. It should be noted that you can also pass footer here the same way: ie: { footer: { height: '25px', footer: '<div>this is a footer!</div> } }