getImageBytes static method

Future<Uint8List?> getImageBytes(
  1. int page, {
  2. PageSourceType pageSourceType = PageSourceType.cutFilter,
})

Generates a JPG from the loaded or scanned page and returns it as Uint8List which you can use for further processing, for example wrapping it in ByteData.

Implementation

static Future<Uint8List?> getImageBytes(int page,
    {PageSourceType pageSourceType = PageSourceType.cutFilter}) {
  return DocutainSdkPlatform.instance.getImageBytes(page, pageSourceType);
}