How do I print from an X application using foomatic and rlpr?



I have installed rlpr, and using the following command, I can send a
text file to my printer:

rlpr -Pbelinda -Hpegasus foobar.txt

I now want to print from an X application, such as Mozilla Browser or
Abiword.

My printer is a Hewlett Packard Laserjet 4 and is driven using Printer
Control Language, and does not have native Postscript support.

I have installed the package foomatic-filters and I want to know how to
chain this together with the rlpr command and configure my internet
browser to use it.

Start, Mozilla, Menu: File, Print, Button: Properties, Pulldown: Papersize>
A4, Textbox: Print Command>

This currently reads:

lpr ${MOZ_PRINTER_NAME:+-P"$MOZ_PRINTER_NAME"}

Does anyone know where MOZ_PRINTER_NAME comes from?

Anywaym I have scrubbed this line and changed it to read:

rlpr -Pbelinda -Hpegasus

and on the printer, I am getting Postscript output beginning:

%!PS-Adobe-3.0
%%BoundingBox: 0 0 612 792

How do I insert the foomatic filter to convert the spool to Printer
Contol Language before sending the document to the printer?

Thanks in advance to anyone who can help

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
.


Quantcast