openFile static method

Future<PdfDocument> openFile(
  1. String filePath
)

Open PDF document from filesystem path

Implementation

static Future<PdfDocument> openFile(String filePath) async => _open(
      (await _channel.invokeMethod<Map<dynamic, dynamic>>(
        'open.document.file',
        filePath,
      ))!,
      'file:$filePath',
    );