react-native-thermal-printer icon indicating copy to clipboard operation
react-native-thermal-printer copied to clipboard

Multi line column mode

Open hramchandani opened this issue 7 months ago • 0 comments

It is possible to print a receipt in column mode where the text in one column take up more than 1 line in only that specific column?

For example: When I try to print a receipt with 2 columns and the following text everything prints fine: '[L]Shirt[R]9.99\n'

But when I try to print the following line: '[L]Shirt with a very long description because I want it to take 2 lines[R]9.99\n', the item description takes up the entire first line, pushes the price onto the second line, and most importantly, does not right align the price.

When there is a very long description, I would like either the description to take up the entire first line, the remainder on the second line, and then have the price right aligned on the 2nd line. Or I would like the description to word wrap within its assigned column, so the price stays in its column and stays right aligned.

Is there a way to do this? Thank you.

hramchandani avatar May 20 '25 04:05 hramchandani