changes in header an footer to pdf