genPdfImage method
Implementation
Future<String> genPdfImage({
required String pdfPath,
required String outPath,
int imageSize = -1, // -1 is pdf.width&& pdf.height
int pageIndex = 0, //0 base
}) async {
return await _channel.invokeMethod<String>('$_namePdf/genPdfImage', {
'pdf_path': pdfPath,
'out_path': outPath,
'page_index': pageIndex,
'size': imageSize,
}) ??
'';
}