ImageIOUtil.writeImage(BufferedImage image, String filename, int dpi)
PDFText2HTML.startDocument(PDDocument)
ImageIOUtil.writeImage(BufferedImage image, String filename, int dpi)
, which uses the full filename instead of just the prefix.