renderPdfPage method

Future<Uint8List?> renderPdfPage({
  1. required int pdf,
  2. required int page,
  3. int? x,
  4. int? y,
  5. int? width,
  6. int? height,
  7. double? scale,
  8. Color background = const Color(0xFFFFFFFF),
})

Converts a given page from a given pdf to a bitmap.

Optionally crop the output image to a given x and y coordinate with a given width, height.

With the scale argument you can control the output resolution. Default scale is 1 which means that the output image has exactly the size of the PDF.

Optionally set the background color which will be used instead of transparency.

Implementation

Future<Uint8List?> renderPdfPage({
  required int pdf,
  required int page,
  int? x,
  int? y,
  int? width,
  int? height,
  double? scale,
  Color background = const Color(0xFFFFFFFF),
}) async {
  throw UnimplementedError('renderPDFPage() has not been implemented.');
}