[cups] RAW printing on Labelprinter

Meyer Klaus kmeyer at dohle.com
Fri Feb 12 01:49:50 PST 2016


Hello Franz,

we did the same thing to print prescribe Files (language of Kyocera printers). We put this in mime.types:

application/prescribe           contains(0,8,"!R!")

and this in mime.convs:

application/prescribe           application/vnd.cups-raw        0       prescribe

where prescribe is a little filter script which removes some unnessesary characters.
I think you are on the right way.

Klaus Meyer

-----Ursprüngliche Nachricht-----
Von: cups-bounces at cups.org [mailto:cups-bounces at cups.org] Im Auftrag von Pförtsch, Franz
Gesendet: Freitag, 12. Februar 2016 10:08
An: cups at cups.org
Betreff: [cups] RAW printing on Labelprinter

Hello,

I am building up a printing solution for a ERP-System (SAP).

The ERP-System creates PDF-Labels, sends them via lpd to the cups-server  and this are printed out via rastertolabel (drv:///sample.drv/zebra.ppd).

This is working fine.

Now, the challenge!

When I try to printout preformatted ZPL-datastreams the cupsd detect the spooljob as text and the datastream is printed out as text.
No barcodes, no formular :(


My solution was to create a new mimetyp in a own mimetime file (custom-mime.type)

application/zpl                           contains(0,128,"^XA")

and I added the following line to the sample.drv

diff /usr/share/sample.drv /usr/share/cups/drv/sample.drv
1005a1006
>     Attribute "cupsFilter" "" "application/zpl 0 -"


Is there any other solutions for this?

This would mean I have to change all PPD or DRV-files for labelprinters (eg. For Printronix IGP and CAB)

A lot of regards
Franz Pförtsch
_______________________________________________
cups mailing list
cups at cups.org
https://www.cups.org/mailman/listinfo/cups

Dohle Handelsgruppe Service GmbH & Co. KG | Jean-Dohle-Straße 1 (Zufahrt: Alte Lohmarer Straße 59) | 53721 Siegburg | Telefon 0 22 41/1 22 0 | HRA Siegburg 2488
Pers. haftende Gesellschaft: Dohle Handelsgruppe Service Verwaltung GmbH | HRB Siegburg 4941
Geschäftsführer: Gert Schambach | Dr. Carl Bauerschmitz | Patrick Höhn | Nils Nikolai



More information about the cups mailing list