#27288

There is a number of header-definition methods:
http://pd4ml.com/cookbook/pdf_header_footer_generation.htm

With Java API you may either merge header definition like with HTML content (the header definition needs to be before opening tag) or to customize PD4PageMark instance;

[language=java:2irr3x0y]PD4PageMark header = new PD4PageMark() {
public String getHtmlTemplate(int pageNumber) {
if ( pageNumber > 1 ) {
return “some document header stuff…”;
} else {
return “”;
}
}
};
pd4ml.setPageHeader(header);[/language:2irr3x0y]