// Opens an existing EPUB file for reading. java.io.FileInputStream fileInputStream = new java.io.FileInputStream($i("input.epub")); // Create an instance of the ImageSaveOptions class ImageSaveOptions options = new ImageSaveOptions(ImageFormat.Png); // Call the ConvertEPUB() method to convert EPUB to PNG Converter.convertEPUB(fileInputStream, options, $o("input-output.png"));