open method

Future<CPDFDocumentError> open(
  1. String filePath,
  2. String password
)

Implementation

Future<CPDFDocumentError> open(String filePath, String password) async {
  var errorCode = await _channel.invokeMethod(
      'open_document', {'filePath': filePath, 'password': password});
  var error = CPDFDocumentError.values[errorCode];
  _isValid = error == CPDFDocumentError.success;
  return error;
}