isPdfProtected method

  1. @override
Future<bool> isPdfProtected({
  1. required String filePath,
})
override

Implementation

@override
Future<bool> isPdfProtected({required String filePath}) async {
  try {
    final bool result = await methodChannel.invokeMethod('isPdfProtected', {
      'filePath': filePath,
    });
    return result;
  } on PlatformException catch (e) {
    if (kDebugMode) {
      print("Failed to check if PDF is protected: '${e.message}'.");
    }
    rethrow;
  }
}