[cups] RAW printing on Labelprinter
Pförtsch, Franz
Franz.Pfoertsch at brose.com
Fri Feb 12 01:07:44 PST 2016
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
More information about the cups
mailing list