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