[cups.general] HP laserJets Barcodes and CUPS

Thomas Mieslinger Thomas.Mieslinger at 1und1.de
Tue Oct 18 10:03:06 PDT 2011


Maybe it is worth to take a look at http://code.google.com/p/postscriptbarcode/

With this you don't rely on a special font in the printer but you code your document in pure postscript, cups/gs renders it printer specific and sends it to the printer.

HTH Thomas

> -----Original Message-----
> From: cups-bounces at easysw.com [mailto:cups-bounces at easysw.com] On
> Behalf Of Michael Sweet
> Sent: Tuesday, October 18, 2011 6:59 PM
> To: Mirror of cups.general Newsgroup
> Subject: Re: [cups.general] HP laserJets Barcodes and CUPS
> 
> 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
> 
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups


More information about the cups mailing list