I can print text and image with my Bluetooth/USB thermal receipt printer using ESC/POS commands but now I try to print the content rotated 90°.
I think the printer does not support printing as landscape.
What I can think of is to convert all the printing content into an image and print it as image.
Now, I need some examples how to generate the image with shapes like rectangular box, lines, image and text (maybe different size and styles). Then I need to rotate the image and return as bytes to print out.
I think the printer does not support printing as landscape.
What I can think of is to convert all the printing content into an image and print it as image.
Now, I need some examples how to generate the image with shapes like rectangular box, lines, image and text (maybe different size and styles). Then I need to rotate the image and return as bytes to print out.