isPdfProtected method
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;
}
}