openFile static method

Future<PdfDocument> openFile(
  1. String filePath
)

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',
  );
}