mergePdfFiles method

  1. @override
Future<String> mergePdfFiles({
  1. required List<String> filesPath,
  2. required String outputPath,
})
override

Implementation

@override
Future<String>mergePdfFiles({required List<String> filesPath, required String outputPath}) async {
  try {
    final String result = await methodChannel.invokeMethod('mergePdfFiles', {
      'filesPath': filesPath,
      'outputPath': outputPath,
    });
    return result;
  } on PlatformException catch (e) {
    if (kDebugMode) {
      print("Failed to merge PDF files: '${e.message}'.");
    }
    rethrow;
  }
}