python-escpos
python-escpos copied to clipboard
Help removing whitespace at top of print
I have:
- [x] 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
Hi @wilSecord . Please, provide more information about your printer model and a minimal code snippet that reproduce your issue.
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.