I am getting `undefined` appended to the header and footer that I am trying to add to the PDF document. 