HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › PDF page headers/footers definition options › Re: Re: PDF page headers/footers definition options
February 15, 2013 at 15:49
#27288
} else {
return “”;
}
}
};
pd4ml.setPageHeader(header);[/language:2irr3x0y]
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
[language=java:2irr3x0y]PD4PageMark header = new PD4PageMark() {
public String getHtmlTemplate(int pageNumber) {
if ( pageNumber > 1 ) {
return “
} else {
return “”;
}
}
};
pd4ml.setPageHeader(header);[/language:2irr3x0y]