printPdf method
Implementation
@override
Future<void> printPdf(Uint8List pdfData, String printerName) async {
try {
await _channel.invokeMethod('printPdf', {
'pdfData': pdfData,
'printerName': printerName,
});
} on PlatformException catch (e) {
throw Exception('Failed to print PDF: ${e.message}');
}
}