Extract pages from PDF file