I am currently evaluating this software, before deciding to buy the full license. It looks like there might be a limitation with regards to headers and footers. The example above demonstrates how to define page specific content, but as far as I can see there is no way to set page specific areaHeight.

I would like to render my first page without a header:
[language=Java:1fdcwkd1]PD4PageMark out = new PD4PageMark();
out.setHtmlTemplate(“…some header…”);

The header is not displayed in the pdf, but the space it occupies (in subsequent pages) pushes the content down. Is there a way to solve this?