getPDFPageSize static 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
static Future<PdfImageRendererPageSize> getPDFPageSize({
required int pdf,
required int page,
}) async {
final size = (await _channel.invokeMapMethod<String, int>('getPDFPageSize', {
'pdf': pdf,
'page': page,
}))!;
return PdfImageRendererPageSize(
width: size['width']!,
height: size['height']!,
);
}