added header and footer in the pdf