writeImage static method
Generates a JPG from the loaded or scanned page and saves it to a local file.
Provide the page which you want to export as JPG file and the path and fileName where to save it.
Implementation
static Future<File?> writeImage(int page, String path, String fileName) {
return DocutainSdkPlatform.instance.writeImage(page, path, fileName);
}