# createDocumentFromPDF method

Future<DocumentData> createDocumentFromPDF(

1. String pdfUri

)

Create a new document from PDF file.

## Implementation

    Future<DocumentData> createDocumentFromPDF(String pdfUri) async {
      try {
        var operationParamsMap = <String, dynamic>{
          "pdfUri": pdfUri,
        };

        var result = await ScanbotSdk.channel
            .invokeMethod('createDocumentFromPDF', operationParamsMap);

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