# addPage method

Future<ResultWrapper<DocumentData>> addPage(

1. AddPageParams params

)

Add a new page to a document and return the updated document.

## Implementation

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

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