savePdfAndOpen method
Save PDF and automatically open it with default PDF reader
Implementation
Future<bool> savePdfAndOpen(Uint8List pdfBytes, {String? fileName}) async {
try {
final filePath = await savePdfToDeviceAndOpen(pdfBytes, fileName: fileName);
return filePath != null;
} catch (e) {
return false;
}
}