getPdfPageSize method
Returns an instance of PdfImageRendererPageSize, holding the width and height in points of the page at given index of the PDF located at given path.
Implementation
@override
Future<PdfImageRendererPageSize> getPdfPageSize({
required int pdf,
required int page,
}) async {
final size = (await methodChannel.invokeMapMethod<String, int>('getPDFPageSize', {
'pdf': pdf,
'page': page,
}))!;
return PdfImageRendererPageSize(
width: size['width']!,
height: size['height']!,
);
}