code: public static Image getJbig2Image(RandomAccessFileOrArray ra, int page) {
  		if (page < 1)
              throw new IllegalArgumentException("The page number must be >= 1.");
  		
  		try {
  			JBIG2SegmentReader sr = new JBIG2SegmentReader(ra);
  			sr.read();
  			JBIG2SegmentReader.JBIG2Page p = sr.getPage(page);
  			Image img = new ImgJBIG2(p.pageBitmapWidth, p.pageBitmapHeight, p.getData(true), sr.getGlobal(true));
  			return img;
  		} catch (Exception e) {
  	        throw new ExceptionConverter(e);
  	    }
  	}
docs: returns an Image representing the given page.
  @param ra	the file or array containing the image
  @param page	the page number of the image
  @return	an Image object