adjusted start_page_num so the supplied desired page number is the page the script starts on