getPDFPageCount static method

Future<int?> getPDFPageCount({
  1. required int pdf,
})

Returns the number of pages for the PDF located at given path.

Implementation

static Future<int?> getPDFPageCount({
  required int pdf,
}) async {
  final count = await _channel.invokeMethod<int>('getPDFPageCount', {
    'pdf': pdf,
  });
  return count;
}