klirichek / zj-58

CUPS filter for thermal printers as Zjiang ZJ-58, XPrinter XP-58, etc
BSD 2-Clause "Simplified" License
331 stars 195 forks source link

Allow Longer Blank Feed #25

Open juancarlospaco opened 5 years ago

juancarlospaco commented 5 years ago

I am using it for a manual cutting thermal printer, and 45mm is not enough, but if I press the manual feed button it feeds way too much, if I cut using the 45mm blank feed it chops the printed page.


This is the technical data if you want to add it to the list of printers that works: SERIAL: Hiker sudio MAKER: Hiker sudio MODEL: MJ-5818 Paper: Thermal paper roll 58mm Cutting: Manual (plastic blade) Cash Drawer: RJ-11 connector x 1 Interface: USB Power: 12 Volts DC 2 Amper Path: usb://Unknown/Printer?serial=Hiker%20sudio lsusb: STMicroelectronics Mass Storage Device (Yes, storage device but is actually the printer) Sometimes it displays the name escaped as Hiker%20sudio Link: https://articulo.mercadolibre.com.ar/MLA-783263694-impresora-termica-58mm-comandera-tickets-usb-_JM Driver used is J-Speed XP-58

Thanks for the great work :grey_exclamation:

klirichek commented 5 years ago

What length would be enough, you think?

juancarlospaco commented 5 years ago

I not C expert, but I code mostly Nim lang, so I would add 50mm, 75mm, 99mm. Those probably fit most weird manual cutting ones. :slightly_smiling_face:

klirichek commented 5 years ago

That is not at all about C. Lines have to be added to .drv, which is kind of PPD (just find existing chunk of values, copy-paste several lines and correct them accordingly)

juancarlospaco commented 5 years ago

I understand, If you mean exact value, on this model theres space between the printer thermal thing and the cutter so no need for exact value, I probably will use 75mm or 99mm, sorry if I get the question wrong, the driver really works perfect :grey_exclamation: