openFile static method
Open PDF document from filesystem path
Implementation
static Future<PdfDocument> openFile(String filePath) async {
if (UniversalPlatform.isWeb) {
throw PlatformNotSupportedException();
}
return _open(
(await _channel.invokeMethod<Map<dynamic, dynamic>>(
'open.document.file',
filePath,
))!,
'file:$filePath',
);
}