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

Help removing whitespace at top of print #551

Open
1 task done
wilSecord opened this issue Aug 23, 2023 · 2 comments
Open
1 task done

Help removing whitespace at top of print #551

wilSecord opened this issue Aug 23, 2023 · 2 comments

Comments

@wilSecord
Copy link

I have:

  • searched open and closed issues for duplicates

Working on a project and need my print outs to be a certain height. I want to remove the empty space at the top (image attached) and I have no idea if theres an ESC code or something or a setting and just generally would like some help accomplishing this. Thanks for any info!!

Printer: Epson TM-T70II

python-escpos version: 2.2.0

python version: 3.11

operating system: Arch Linux
20230823_181538

@belono
Copy link
Contributor

belono commented Aug 24, 2023

Hi @wilSecord .
Please, provide more information about your printer model and a minimal code snippet that reproduce your issue.

@patkan
Copy link
Member

patkan commented Aug 27, 2023

To add to what @belono wrote, it would be especially interesting how you call the cut method. It could be helpful to use the most recent v3 pre-releaes for this.

The most relevant issue here is probably that there is in most printers some distance between the thermal printer unit and the cutter. The current implementation crosses this distance by feeding the paper. You could try modifying the code so that it prints part of your content until you have reached the right location for cutting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants