getPDFlength static method
Returns int, number of the pages in the PDF document
Implementation
static Future<int> getPDFlength(String path) async {
/// Mapping the path to <key, value>
final int pdfLength = await _channel
.invokeMethod('getPDFlength', <String, dynamic>{'path': path});
return pdfLength;
}