update the pdf functions for the page spliting