# addPage method

Future<DocumentData> addPage(

1. AddPageParams params

)

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

## Implementation

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

        return DocumentData.fromJson(jsonDecode(result));
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }