# getFilteredDocumentPreviewUri static method

Future<Uri> getFilteredDocumentPreviewUri(

1. Page page,
2. ImageFilterType filter

)

Creates a preview image file of the DOCUMENT image by given `filter`. Does not modify the actual DOCUMENT image of the passed `page`. Use the 'applyImageFilter(page, filter)' method to finally apply an image filter on a page.

## Implementation

    static Future<Uri> getFilteredDocumentPreviewUri(
        Page page, ImageFilterType filter) async {
      try {
        var arguments = {
          'page': page.toJson(),
          'filter': imageFilterJsonValue(filter)
        };
        final uri = await _channel.invokeMethod(
            'getFilteredDocumentPreviewUri', arguments);
        return Uri.parse(uri);
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }