Manage too many pages on PDF file error