getEncryptAlgo method
Get the encryption algorithm of the current document
example:
CPDFDocumentEncryptAlgo encryptAlgo = await controller.document.getEncryptAlgo();
Implementation
Future<CPDFDocumentEncryptAlgo> getEncryptAlgo() async {
String encryptAlgoStr = await _channel.invokeMethod(
'get_encrypt_algorithm',
);
return CPDFDocumentEncryptAlgo.values
.where((e) => e.name == encryptAlgoStr)
.first;
}