Switched pdf page-loading method to be 1-based.