I am using Posiflex thermal receipt printer to print retail bills using python.
I tried with following
import os
os.startfile("C:/Users/TestFile.txt", "print")
but whenever I tried printing there is white space trailing the text resulting in wastage of paper. How can I print just raw text eliminating trailing white space?
please find image for clarity. I want to print it like 2nd one but the output is like the 1st one.