Barode Printing


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Barode Printing
# 1  
Old 11-16-2004
Barode Printing

I am trying to print a UPC-A barcode form UNIX to a epson dot matrix printer.

At the moment I can print EAN 8 using the following HEX string,

1B 10 41 04 00 01 00 06 .. creates the barcode
1b 10 42 08 .. prints the barcode

And this works fine but when I try to do something similar for a UPC-A barcode it doesn't work.

1B 10 41 04 01 00 00 06 .. create the barcode
1B 10 42 0C .. print the barcode.

Can somebody help me please.

Thanks,
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Printing, SYSPRINTER, IP printing

Dear readers, We have a printer problem with a UNIX system. The OS is Unix IRIX 6.5 We have connected a printerto the system. If we then make a test print everything goes well . (IP printing) But if we make a print from the "orrga,i"program. Then we see all the printouts stuck within the... (3 Replies)
Discussion started by: SergevdH
3 Replies

2. UNIX for Dummies Questions & Answers

help in printing %

Hi, while executing: printf "%05d\n" 12 32 00012 00032 Similarly i need to get the below outpurs: ###12 ###32 12%%% 32%%% (1 Reply)
Discussion started by: pandeesh
1 Replies

3. UNIX for Dummies Questions & Answers

Sco Unix printing : jobs hangs in queue - printing via lp versus hpnpf

Hi, We have a Unix 3.2v5.0.5. I installed a printer via scoadmin, HP network printer manager with network peripheral name (hostname and ipadres are in /etc/hosts). This is the configuration file : Code: root@sco1 # cat configurationBanner: on:AlwaysContent types: simpleDevice:... (0 Replies)
Discussion started by: haezeban
0 Replies

4. Windows & DOS: Issues & Discussions

Linux to Windows Printing: PDF starts printing from middle of page.

We are using Red Hat. We have a issue like this: We want to print from Linux, to a printer attached to a Windows machine. What we want to print is a PDF. It prints, but the printing starts from the middle of the page. In the report, there is no space at the top but still printing starts from the... (5 Replies)
Discussion started by: rohan69
5 Replies

5. Shell Programming and Scripting

Printing

Hey, I'm trying to print in HP laserjet 2420 by using the command: lp -olandscape (file) For some reason it does not come out as landscape but as portrait. Help please. 10x. P.S. I'm using csh (0 Replies)
Discussion started by: Kofiko
0 Replies

6. UNIX for Dummies Questions & Answers

Need Printing help Please

I would like to set up a local printer(actually a Brother Fax machine) to my Compaq Tru64 Unix computer but I dont know how. I've tried the SAM command with no success. The computer says does no recognize command. Please help.... (1 Reply)
Discussion started by: donnieb79
1 Replies

7. UNIX for Dummies Questions & Answers

Printing

Ok, I found this http://docs.sun.com/?q=netstandard&p=/doc/805-7229/6j6q8svb1&a=view and I am trying to follow the section labled How To Add A Network Printer Using LP Commands But I just can't get these things to print (SUN hardware). We have an NT print server or I could print directly... (1 Reply)
Discussion started by: bbrandeb49
1 Replies

8. UNIX for Advanced & Expert Users

Printing Problems in unix ... ( Bar-cdoe - Ip Printing)

Hi guys ... i need ur help with some printing problem in unix ... first prob. : i wanna print from my NCR unix to an Win NT , Ip based printing server ( HP JetDirect ) . My issue , is it possible to print directly to an Ip address from unix ? How do i make it work to get any results ?... (3 Replies)
Discussion started by: QuickSilver
3 Replies

9. UNIX for Dummies Questions & Answers

Printing

Do all UNIX systems have the ability to print to an ASCII file? If so, is this a common thing to do, for reports or other output? Thank you for your response. (3 Replies)
Discussion started by: SYMTRAX
3 Replies
Login or Register to Ask a Question
Barcode::UPCA(3)					User Contributed Perl Documentation					  Barcode::UPCA(3)

NAME
GD::Barcode::UPCA - Create UPC-A barcode image with GD SYNOPSIS
ex. CGI use GD::Barcode::UPCA; binmode(STDOUT); print "Content-Type: image/png "; print GD::Barcode::UPCA->new('12345678901')->plot->png; with Error Check my $oGdBar = GD::Barcode::UPCA->new('123456789'); die $GD::Barcode::UPCA::errStr unless($oGdBar); #Invalid Length DESCRIPTION
GD::Barcode::UPCA is a subclass of GD::Barcode and allows you to create UPC-A barcode image with GD. This module based on "Generate Barcode Ver 1.02 By Shisei Hanai 97/08/22". new $oGdBar = GD::Barcode::UPCA->new($sTxt); Constructor. Creates a GD::Barcode::UPCA object for $sTxt. $sTxt has 11 or 12 numeric characters([0-9]). If $sTxt has 11 characters, this module calacurates CD for you. plot() $oGd = $oGdBar->plot([Height => $iHeight, NoText => 0 | 1]); creates GD object with barcode image for the $sTxt specified at new method. $iHeight is height of the image. If NoText is 1, the image has no text image of $sTxt. ex. my $oGdB = GD::Barcode::UPCA->new('12345678901'); my $oGD = $oGdB->plot(NoText=>1, Height => 20); # $sGD is a GD image with Height=>20 pixels, with no text. barcode() $sPtn = $oGdBar->barcode(); returns a barcode pattern in string with '1', 'G' and '0'. '1' means black, 'G' also means black but little bit long, '0' means white. ex. my $oGdB = GD::Barcode::UPCA->new('12345678901'); my $sPtn = $oGdB->barcode(); # $sPtn = ''; $errStr $GD::Barcode::UPCA::errStr has error message. $text $oGdBar->{$text} has barcode text based on $sTxt specified in new method. AUTHOR
Kawai Takanori GCD00051@nifty.ne.jp COPYRIGHT
The GD::Barocde::UPCA module is Copyright (c) 2000 Kawai Takanori. Japan. All rights reserved. You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file. SEE ALSO
GD::Barcode perl v5.16.3 2003-05-29 Barcode::UPCA(3)