choosePagesIndexToMerge method

  1. @override
Future<String?> choosePagesIndexToMerge({
  1. required String inputPath,
  2. required String outputPath,
  3. required List<int> pagesIndex,
})
override

Implementation

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