Thermal printers

From PrePostPrint

Thermal printer

Via a Web Browser

You can print “directly” from the browser to a printer using WebUSB.

Web compatibility: caniuse.com/webusb

WebUSB Documentation: developer.mozilla.org/en-US/docs/Web/API/WebUSB_API

Tools and libraries

- cellivar.github.io/WebReceiptLinePrinter/demo/=

- receiptline.github.io/designer/=

- github.com/NielsLeenheer/WebUSBReceiptPrinter (and a fantastic talk on how it was built)

Demo

Created in January 2024 in PPPrototypes workshop @ Césure by Thomas: glitch.com/edit/#!/webusb2print

Thermal printers @ XPUB

Resources from our dear experimental publishers friends:

https://pzwiki.wdka.nl/mediadesign/Thermal_printers

Using the lp command from cups

https://openprinting.github.io/cups/

Bellow are examples, considering your thermal printer is the default one, otherwise you would have to precise which one you would like to print with, using the -d option :

lp image.png -d TM-T20II

Print text from standard input

echo hello | lp
lp book.pdf -o PageSize=Custom.68.5x69mm

Tools

- banderole.sh (CC4r) A tool for printing banners on cash receipts, it's 25 lines of shell using image magick to generate the text and lp to send it to the printer.