[H-GEN] Dot matrix Printing

Tony Melia tony.melia at tmitc.com.au
Thu Nov 4 16:12:42 EST 2004


I would like to write a small perl app to print labels, which will be
integrated into a larger app.  I have done testing using an Epson LQ-300
with the following code;
 
#!/usr/bin/perl
 
use Printer;
 
$printer = new Printer('Linux' => 'lp');
$printer->use_default;
$printer->print("testing");
 
But I get a formfeed after the text is printed, which wastes lots of labels.
Is there any  way I can prevent this formfeed?  I use RH 9 and CUPS.
 
My cups config for the printer is <DefaultPrinter epson>
Info Created by redhat-config-printer 0.6.x
DeviceURI parallel:/dev/lp0
Location Epson Stock label printer
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

Thanks in advance,
 
Tony Melia





More information about the General mailing list