[KLUG Members] barcode

Dirk H Bartley bartleyd2 at chartermi.net
Fri Nov 18 14:06:10 EST 2005


I've succeded in a different direction.  Pure pcl.  Our business
software has some subroutines to create a couple of different types of
barcodes by drawing the lines with pcl code.  There's really not much
there other than drawing each line one by one.  I just have to create a
new spool to the jetdirect as raw so that the pcl does not get turned
into postscript by cups.

I panicked when I realized it would be a pain to get the output of the
barcode binary (postscript) to enscript over onto another page.  Because
escript is good at turning text into postscript and then encoding the
top line to have a second postscript page print directly on top.

Dirk

On Fri, 2005-11-18 at 14:44 -0500, Adam Tauno Williams wrote:
> > I have successfully printed using the barcode program a table of
> > barcodes as desired in a perl script using the system function to
> > execute barcode.  Now I want to add text to the page.  What I am looking
> > for is a way to make text appear on a page similar to the way you can
> > print text to the screen in a program, by designating the position for
> > the text to print.
> > So how do I create a postscript document.  I imagine I would need a perl
> > module, (or any other language) where I could do something like:
> > BEGIN POSTSCRIPT
> > PRINT x=55, y=135, text="ABC" font="helvetica" fontsize="14"
> 
> I have a book on Postscript you can borrow.  Writing Postscript is awful.
> 
> > END POSTSCRIPT
> > Can I do this kind of thing with ghostscript or any other type of
> > library or software.
> > I'm planning on getting the text postscript page on the same page as the
> > barcodes.  I'm not evan sure if I can get enscript to get 2 postscript
> > pages on the same page.  There has to be some relatively simple way to
> > do this.  I'm banging my head at this point.
> 
> I cheated once.  I designed the label(s) in glabels and "printed" to a
> postscript file.  Then I sed'd the strings in the postscript file.
> 
> > It seems I should be able to do with a postscript printer what I can do
> > with a barcode printer!!
> 
> You need something that has a 'canvas' you can draw on.  I'd look and see if
> there are python/perl/whatever-language-you-are-using to the GNOME print
> libraries.
> 
> _______________________________________________
> Members mailing list
> Members at kalamazoolinux.org
> 



More information about the Members mailing list