* @param doc
* document object
*/
public void addHeaderFooter(Document doc) {
// Set the author name and project description as the file header
HeaderFooter footer = new HeaderFooter(new Phrase(projectDesc + " - " + author, FontFactory.getFont(FontFactory.TIMES_ROMAN, 10, Font.NORMAL, new Color(64, 62, 62))), false);
// Set page number as the file footer
HeaderFooter header = new HeaderFooter(new Phrase("Page ", FontFactory.getFont(FontFactory.TIMES_ROMAN, 10, Font.NORMAL, new Color(64, 62, 62))), true);
footer.disableBorderSide(Rectangle.TOP);
footer.disableBorderSide(Rectangle.BOTTOM);
// Set the footer alignment to the center
footer.setAlignment(Rectangle.ALIGN_CENTER);
header.disableBorderSide(Rectangle.TOP);
header.disableBorderSide(Rectangle.BOTTOM);
// Set the footer alignment to the right
header.setAlignment(Rectangle.ALIGN_RIGHT);
doc.setHeader(header);
doc.setFooter(footer);
}