# createPDFForDocument method

Future<CreatePDFResult> createPDFForDocument(

1. PDFFromDocumentParams params

)

Creates a PDF for the given document. Please check the extra options that are part of the input params to modify the created PDF file per your needs.

## Implementation

    Future<CreatePDFResult> createPDFForDocument(
        PDFFromDocumentParams params) async {
      try {
        var result = await ScanbotSdk.channel
            .invokeMethod('createPDFForDocument', params.toJson());

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