docs: public static List<IIOImage> getIIOImageList(File inputFile) throws IOException {
          // convert to TIFF if PDF
          File imageFile = getImageFile(inputFile);
  
          List<IIOImage> iioImageList = new ArrayList<IIOImage>();
          String imageFormat = getImageFileFormat(imageFile);
  
          Iterator<ImageReader> readers = ImageIO.getImageReadersByFormatName(imageFormat);
          if (!readers.hasNext()) {
              throw new RuntimeException(JAI_IMAGE_READER_MESSAGE);
          }
          ImageReader reader = readers.next();
  
          try (ImageInputStream iis = ImageIO.createImageInputStream(imageFile)) {
              reader.setInput(iis);
  
              int imageTotal = reader.getNumImages(true);
  
              for (int i = 0; i < imageTotal; i++) {
  //                IIOImage oimage = new IIOImage(reader.read(i), null, reader.getImageMetadata(i));
                  IIOImage oimage = reader.readAll(i, reader.getDefaultReadParam());
                  iioImageList.add(oimage);
              }
  
              return iioImageList;
          } finally {
              if (reader != null) {
                  reader.dispose();
              }
  
              // delete temporary TIFF image for PDF
              if (imageFile != null && imageFile.exists() && imageFile != inputFile && imageFile.getName().startsWith("multipage") && imageFile.getName().endsWith(TIFF_EXT)) {
                  imageFile.delete();
              }
          }
      }