nestjs-pdf icon indicating copy to clipboard operation
nestjs-pdf copied to clipboard

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

Open diamond94618 opened this issue 3 years ago • 2 comments
trafficstars

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

diamond94618 avatar Sep 18 '22 08:09 diamond94618

This is my code

image

Hope this helps

zulmarij avatar Nov 30 '22 01:11 zulmarij

@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> } }

LordKriegan avatar Aug 22 '23 22:08 LordKriegan