Hi Bob, CUPS would definitely not expect PCL input. Not sure if it's possible to tell it otherwise.
A couple of suggestions: If you're generating PCL from your program, you may want to consider filtering it through GhostPCL which converts PCL into Postscript. If you're not averse to python, labelnation <http://www.red-bean.com/labelnation/> prints labels quite well. I doubt it will have support for your particular labels, but it's quite easy to add new labels. I've had very good luck with it. It used to be a perl program, BTW. postscript does not have the concept of margins. by default, printing starts on the edge of the paper (or nearly so). However, CUPS does have margin settings: see the ppd file for your printer. I suspect you'll need to modify the 'ImageableArea' values. Here's how you set a font a postscript: %Set font to 12 point Helvetica /Helvetica findfont 12 scalefont setfont HTH -Gyepi On Tue, Nov 06, 2007 at 12:10:45PM -0500, R. Mariotti wrote: > Fellow luggers; > > I have a short perl program that prints labels n-up on standard letter > sized pages (actually Panduit Labels). > > This originally printed to an HP2600 printer which has since been > retired and replaced with a Brother HL5250DN printer. > > This printer is connected via CUPS on Linux so I am not sure if cups is > converting the output to postscript or sending pcl. The printer > emulation is set to pcl (but I know it can change dynamically). > > I have been trying to send pcl commands from my perl program to modify > the offsets, margins, typeface, etc with NO success. > > Therefore, has anyone printed such commands before and especially to > this printer? > > My method is really simple such as: > > print OFH "\x1B\&a0L"; # Set Left Margin to Zero columns > > When run the esc (x1B) is being eaten but the &a0L prints as text > indicating that the printer is NOT recognizing it as a command. > > That would indicate to me that cups is sending the output as postscript > which switches the printer to PS mode so it would not intercept the pcl > commands. > > If that is true, can anyone PLEASE provide some equiv PS commands to set > some of the parameters? I've search the PS docs with no clear examples. > > Thanks in advance for any assistance. > > Bob _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

