Basically if my table of contents exceeds one-page then it the contents of the 2nd page overlaps with the document header. I tried adding self.set_y(15) at the end of the header function. However this didn't help. Continue reading...