How to develop a thermal printer driver

Sebastian c.sebasgonzalez at gmail.com
Thu Jul 28 11:50:41 PDT 2011


I am trying to develop a driver for BSV4 (Toshiba Tec) thermal printer.
First I have down is a file .drv following the example in /usr/share/cups/drv/sample.drv which have several printers including some thermal ones.
The file I made was compile with ppdc. See "Developing Raster Printer Drivers".
After this I could install the printer unless I have not the filter to convert raster format into my printer language.
The filter should be on /usr/lib/cups/filter/ and to make it I followed rastertolabel.c filter as example. You need to download cups dev files to see this code.
Finally compile your own code with the order
gcc -lm -o outputfile `cups-config --cflags` yourfilter.c `cups-config --image --libs`
and place the output in the filter directory.

If your code is OK the printer works. I am still trying it.



> I saw a few days CUPS example, but still not very clear how to develop a thermal printer CUPS driver, so please help me master.





More information about the cups-devel mailing list