# removePageFromDocument method

Future<ResultWrapper<DocumentData>> removePageFromDocument(

1. RemovePageParams params

)

Remove a page from a document.

## Implementation

    Future<ResultWrapper<DocumentData>> removePageFromDocument(
        RemovePageParams params) async {
      try {
        var result = await SharedCalls.invoke(
            ScanbotSdk.channel, 'removePageFromDocument', params.toJson());

        return ResultWrapper.fromJson(jsonDecode(result),
            fromJsonT: DocumentData.fromJson);
      } catch (e) {
        Logger.root.severe(e);
        return ResultWrapper.error(e.toString());
      }
    }