pdfToLongImage method

  1. @override
Future<String> pdfToLongImage({
  1. required String inputPath,
  2. required String outputPath,
  3. Map<String, dynamic>? config,
})
override

Implementation

@override
Future<String>pdfToLongImage({required String inputPath, required String outputPath, Map<String, dynamic>? config}) async {
  try {
    final String result = await methodChannel.invokeMethod('pdfToLongImage', {
      'inputPath': inputPath,
      'outputPath': outputPath,
      'config': config,
    });
    return result;
  } on PlatformException catch (e) {
    if (kDebugMode) {
      print("Failed to convert PDF to long image: '${e.message}'.");
    }
    rethrow;
  }
}