farminos / open-escpos-print-service

GNU General Public License v3.0
4 stars 2 forks source link

Not cutting after no more content #6

Open Sarorn123 opened 1 week ago

Sarorn123 commented 1 week ago

i set the height from the app coZ i want to avoid multipage it can lead to wasting paper if the page is not full of content. is there a setting for stop printing auto if no more content on the page ?. if have please do tell . or i miss something please help

zvin commented 4 days ago

Hello @Sarorn123 . Have you tried disabling the "Cut after each page" toggle in the printer settings?

Sarorn123 commented 1 day ago

Hello @Sarorn123 . Have you tried disabling the "Cut after each page" toggle in the printer settings?

hello sir really thank you for your response. i use an app call Open ESC/POS print service . i think this app build from this library if not please correct me photo_2024-10-17_20-16-13

the app allow to set hight so i set it to a big height to avoid multipage when receipt long but the problem is the receipt keep printing event after no more content it seem to print unless end of hight i was set

i been try all the setting but not luck please help me. please also give me ur telegram if can i want to direct text you thank you

Sarorn123 commented 1 day ago

photo_2024-10-17_20-33-11

And this is another app it work perfectly fine like what i need but it need to pay allow only 26 for testing when select this app service for print the receipt become very height like in the picture when print it print only content and skip the empty path

zvin commented 1 day ago

Hello @Sarorn123

i use an app call Open ESC/POS print service . i think this app build from this library if not please correct me

Yes, this is the source code repository of the "Open ESC/POS print service" Android app.

Can you please check that the "Cut after each page" option is disabled? It's right below the settings you see in the first picture you posted, you need to scroll down a bit.

If it is disabled, can you please try the "Print test page" button? It should print a printer icon and stop right after, not using extra paper for whitespace.

Sarorn123 commented 23 hours ago

Yes i can see that it is stop print and it a good thing image

but here is my receipt image

you can see it have some empty paper coZ i set the hieght 10 in app setting now here the result:

image

It not stop printing immediately like printer image .

Sarorn123 commented 23 hours ago

if there a way to set dynamic height from config somewhere maybe really good i just thinking

lengzinll commented 9 hours ago

dame bro have problem same as me