createPdf function
Implementation
createPdf(String base64String) async {
var base64 = base64String;
var bytes = base64Decode(base64);
final output = await getTemporaryDirectory();
final file = File("${output.path}/transaction.pdf");
await file.writeAsBytes(bytes.buffer.asUint8List());
debugPrint("${output.path}/example.pdf");
await OpenFile.open("${output.path}/example.pdf");
}