getPdfPageCount method

  1. @override
Future<int?> getPdfPageCount({
  1. required int pdf,
})
override

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

Implementation

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