protected void processPages(List<PDPage> pages) throws IOException {
  maxPage=pages.size();
  for (  final PDPage page : pages) {
    currentPageNo++;
    final PDStream contentStream=page.getContents();
    if (contentStream != null) {
      final COSStream contents=contentStream.getStream();
      processPage(page,contents);
    }
  }
}

protected void processPages ( List < PDPage > pages ) throws IOException { maxPage = pages . size ( ) ; for ( final PDPage page : pages ) { currentPageNo ++ ; final PDStream contentStream = page . getContents ( ) ; if ( contentStream != null ) { final COSStream contents = contentStream . getStream ( ) ; processPage ( page , contents ) ; } } }
this will process all of the pages and the text that is in them .
