missed new_page function for pdf