code: public String getTextFromPage(int page) throws IOException {
      	int totalPages = reader.getNumberOfPages();
      	if (totalPages < page) {
      		throw new IOException("indicated page does not exists, requested page " + page + " document pages " + totalPages);
      	}
      	if (page <= 0) {
      		throw new IOException("page number must be postive:" + page);
      	}
          PdfDictionary pageDic = reader.getPageN(page);
  		if (pageDic == null) {
  			return "";
  		}
          PdfDictionary resourcesDic = pageDic.getAsDict(PdfName.RESOURCES);
          extractionProcessor.processContent(getContentBytesForPage(page), resourcesDic);        
          return extractionProcessor.getResultantText();
      }
docs: Gets the text from a page.
  @param page	the page number of the page
  @return	a String with the content as plain text (without PDF syntax)
  @throws IOException