getPdfPageData method

Future<Uint8List?> getPdfPageData({
  1. required String path,
  2. required int page,
  3. int width = 0,
  4. int height = 0,
})

Implementation

Future<Uint8List?> getPdfPageData({
  required String path,
  required int page,
  int width = 0,
  int height = 0,
}) async {
  final res = await _channel.invokeMethod<Uint8List>(
    '$_namePdf/getPdfPageData',
    {
      'path':path,
      'page':page,
      'width':width,
      'height':height,
    },
  );
  return res;
}