docs: public static File convertPdf2Tiff(File inputPdfFile) throws IOException {
          File[] pngFiles = null;
  
          try {
              pngFiles = convertPdf2Png(inputPdfFile);
              File tiffFile = File.createTempFile("multipage", ".tif");
  
              // put PNG images into a single multi-page TIFF image for return
              ImageIOHelper.mergeTiff(pngFiles, tiffFile);
              return tiffFile;
          } finally {
              if (pngFiles != null && pngFiles.length > 0) {
                  // get the working directory of the PNG files
                  File pngDirectory = new File(pngFiles[0].getParent());
                  // delete temporary PNG images
                  for (File tempFile : pngFiles) {
                      tempFile.delete();
                  }
  
                  pngDirectory.delete();
              }
          }
      }