# performOcr static method

Future<PagesOcrResult> performOcr(

1. List<Page> pages,
2. OcrOptions options

)

Performs OCR (Optical Character Recognition) on DOCUMENT images of given pages.

## Implementation

    static Future<PagesOcrResult> performOcr(
        List<Page> pages, OcrOptions options) async {
      try {
        var arguments = {
          'pages': pages.map((e) => e.toJson()).toList(),
          'options': options.toJson()
        };

        var result = await _channel.invokeMethod('performOcr', arguments);
        var json = jsonDecode(result);
        return PagesOcrResult.fromJson(json);
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }