After doing a lot of thinking (and having solved the problem by “guessing” the size of the content before it is beeing passed to pd4ml), i think a possible solution would be to implement a feature that makes it possible to define two page headers, one for “the next pagebreak”, and one for “the pagebreaks after that”.

Any thoughts about that?