I encountered a problem extracting the PDF specified page.  When I set up "sPageList" similar to "1,3-4",It cannot get a correct number of pages. If I modify the following code, the problem is solved 
Activity