Winnovative HTML to PDF Converter allows you to automatically resize the header and footer to adapt to HTML content being rendered. The resizing is done in the handler of the NavigationCompletedEvent event of the HtmlToPdfElement added in header or footer.

The following options are available in this demo: