[cups.general] HP laserJets Barcodes and CUPS

Michael Sweet msweet at apple.com
Tue Oct 18 09:58:55 PDT 2011


If your print files start with a consistent set of escape sequences at the beginning you can add a "local.types" file to /etc/cups that defines a matching rule for application/vnd.cups-raw, for example if they all start with ESC E then you'd use:

	application/vnd.cups-raw string(0,<33>E)

After putting the local.types file in /etc/cups, restart cupsd and try printing without the "-o raw" option.

On Oct 18, 2011, at 7:54 AM, peter wrote:

> I need to be able to send text files, from RHEL 5,  to a HP Laserjet printer containing Barcode ( 128 format ) information.
> Currently I have working, outside the application, the following
> 
> lp -o raw  -d printername  SetBarCode
> which sets up the font on the printer ( all the control codes/escape sequences are in the SetBarCode file)
> 
> Then to print
> 
> lp -o raw -d printername Filename
> 
> With the Filename having been formatted with a CR and LF at the end of each line
> and the escape sequences needed to select the Barcode font and return to normal font afterwards.
> 
> The application developer has come back and said that the space he has for entering the print instruction is not long enough to contain all of this !!!
> 
> And yes he could format up the SetBarCode + Filename into a single file BUt he still says that the -o raw ... causes the text to be too long.
> 
> If I try to print the file without -o raw - I am told the file is empty
> 
> Is there any way I can do this via a PPD file ? or a Filter ?
> 
> All help appreciated
> Peter
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair





More information about the cups mailing list