page range must not exceed amount of pages in document.