Closed mohammeddawida closed 2 years ago
@mahmmd I have the same problem, and can not print images in some printers, Did you find any solving?
Me also have the same problem, can anybody help me?
@mahmmd I have the same problem, and can not print images in some printers, Did you find any solving?
Use this code to print the image
final filename = 'yourlogo.png'; var bytes = await rootBundle.load("assets/images/yourlogo.png"); String dir = (await getApplicationDocumentsDirectory()).path; writeToFile(bytes, '$dir/$filename'); setState(() { pathImage = '$dir/$filename'; });
bluetooth.printImage(pathImage);
@mahmmd It does not work in Sunmi V2s printer.
@mahmmd
Did you solve Arabic letters problem?
@as2a3 Not yet
@as2a3 @shanubasheer I used this method and it worked for me https://github.com/kakzaki/blue_thermal_printer/issues/82#issuecomment-1048964685
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
There is a problem in typing Arabic letters I used the following code to print
bluetooth.printCustom("HEADER", 3, 1);
bluetooth.printCustom("Thank You", 2, 1);
bluetooth.printCustom("شكرا لك", 2, 1);
But this result appears in print How can i solve it?