#27838

There are 3 ways to define headers or footers with PD4ML:

html-pdf-faq-f1/pdf-page-headers-footers-definition-options-t41.html

The first and the second (definition via PD4ML API) always allocate fixed amount of space.

The third option should do the trick for you.