The Wayback Machine - https://web.archive.org/web/20201129222230/https://github.com/mike42/escpos-php/issues/411
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a command to clear the print buffer #411

Open
afsaliqubal opened this issue Aug 20, 2017 · 5 comments
Open

Implement a command to clear the print buffer #411

afsaliqubal opened this issue Aug 20, 2017 · 5 comments

Comments

@afsaliqubal
Copy link

@afsaliqubal afsaliqubal commented Aug 20, 2017

Is there any option to clear the print Buffer.

If i give 5 print and printer is out of paper. Next time when i am loading paper i am getting all these print. But i don't want this. I need to clear the print queue before loading the paper.

@mdestafadilah
Copy link

@mdestafadilah mdestafadilah commented Aug 22, 2017

yess... me to, lo long buffer after 2 or 3 times print... but, just duplicate the paper(hardpaper), and done.

@afsaliqubal
Copy link
Author

@afsaliqubal afsaliqubal commented Aug 22, 2017

Did u find any option to check the paper status before printing?

@mdestafadilah
Copy link

@mdestafadilah mdestafadilah commented Aug 22, 2017

not yet, or i'm missing information in this doc.. may you can test with this:
$printer -> feed(5);

@mike42 mike42 added the enhancement label Oct 22, 2017
@mike42
Copy link
Owner

@mike42 mike42 commented Oct 22, 2017

@mdestafadilah, @afsaliqubal, can you comment with your make/model of printer and a link to any online documentation that you have for them?

I expect some printers will have a command for this, which could be implemented here.

@mike42 mike42 added the needs info label Oct 22, 2017
@mike42 mike42 changed the title Clear Print Buffer Implement a command to clear the print buffer Mar 12, 2018
@mike42
Copy link
Owner

@mike42 mike42 commented Mar 12, 2018

Leaving this open as an enhancement request. I think DLE ENQ 2 (recover from recoverable errors) clears the print buffers, but I'm not sure how to test this.

As a workaround, power-cycling the printer should do the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.