deletePage static method

Future<void> deletePage(
  1. Page page
)

Removes a page with all its files (ORIGINAL image, DOCUMENT image, previews/thumbnails, filtered images, etc) from the file storage of the Scanbot SDK. This method does not remove any exported files (PDF, TIFF, etc) which were generated based on this page object.

Implementation

static Future<void> deletePage(Page page) async {
  try {
    var arguments = {'page': page.toJson()};
    await _channel.invokeMethod('deletePage', arguments);
  } catch (e) {
    Logger.root.severe(e);
    rethrow;
  }
}