HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › Different Header / Footer based on page number › Re: Re: Different Header / Footer based on page number
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…”);
out.setPagesToSkip(1);
out.setAreaHeight(-1);[/language:1fdcwkd1]
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?