getPageCropBox static method

Future<Rect> getPageCropBox(
  1. int pageNumber
)

Gets a Rect object of the crop box for the specified page.

pageNumber is 1-indexed.

Implementation

static Future<Rect> getPageCropBox(int pageNumber) async {
  String cropBoxString = await _channel.invokeMethod(Functions.getPageCropBox,
      <String, dynamic>{Parameters.pageNumber: pageNumber});
  return Rect.fromJson(jsonDecode(cropBoxString));
}